/* ===== Spokaz Member Skin ===== */

.spk-auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 16px 60px;
  min-height: 60vh;
}

.spk-auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid rgba(219, 228, 238, 0.8);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(22, 58, 120, 0.08);
  padding: 36px 32px;
}

.spk-auth-card.spk-auth-wide {
  max-width: 620px;
}

.spk-auth-card-sub {
  margin-top: 8px;
}

/* Header */
.spk-auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.spk-auth-logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #163a78;
  text-decoration: none;
  margin-bottom: 16px;
}

.spk-auth-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #172033;
  letter-spacing: -0.02em;
}

.spk-auth-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #172033;
}

.spk-auth-header p {
  margin: 8px 0 0;
  color: #66758a;
  font-size: 14px;
  line-height: 1.6;
}

/* Form */
.spk-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spk-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spk-label {
  font-size: 13px;
  font-weight: 700;
  color: #344155;
}

.spk-required {
  color: #2d7cff;
  font-size: 11px;
  font-weight: 800;
}

.spk-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fbff;
  color: #172033;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.spk-input:focus {
  outline: none;
  border-color: #2d7cff;
  box-shadow: 0 0 0 4px rgba(45, 124, 255, 0.1);
  background: #fff;
}

.spk-input[readonly] {
  background: #eef2f7;
  color: #8a99ab;
  cursor: not-allowed;
}

.spk-input-short {
  max-width: 160px;
}

.spk-input-file {
  font-size: 13px;
  color: #66758a;
}

.spk-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fbff;
  color: #172033;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
}

.spk-textarea:focus {
  outline: none;
  border-color: #2d7cff;
  box-shadow: 0 0 0 4px rgba(45, 124, 255, 0.1);
}

.spk-textarea-sm {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fbff;
  color: #172033;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
}

.spk-textarea-sm:focus {
  outline: none;
  border-color: #2d7cff;
  box-shadow: 0 0 0 4px rgba(45, 124, 255, 0.1);
}

.spk-field-msg {
  font-size: 12px;
  color: #66758a;
}

.spk-field-hint {
  font-size: 12px;
  color: #8a99ab;
  line-height: 1.5;
}

.spk-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Checkbox */
.spk-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #344155;
  cursor: pointer;
  line-height: 1.5;
}

.spk-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.spk-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #c8d4e2;
  border-radius: 6px;
  background: #fff;
  transition: all .2s;
}

.spk-checkmark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity .15s;
}

.spk-checkbox input:checked + .spk-checkmark {
  background: linear-gradient(135deg, #2d7cff, #163a78);
  border-color: #2d7cff;
}

.spk-checkbox input:checked + .spk-checkmark::after {
  opacity: 1;
}

.spk-check-all {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0f5fc;
  border: 1px solid #dbe4ee;
}

.spk-check-all strong {
  font-weight: 800;
}

/* Buttons */
.spk-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2d7cff, #163a78);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(36, 114, 255, 0.22);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.spk-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(36, 114, 255, 0.28);
}

.spk-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spk-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f4f8fc;
  color: #46566b;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}

.spk-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: #b8c8db;
}

.spk-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
  color: #2d7cff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.spk-btn-outline:hover {
  background: #f0f5fc;
  border-color: #2d7cff;
}

.spk-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

/* Links */
.spk-link-muted {
  color: #66758a;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.spk-link-muted:hover {
  color: #2d7cff;
}

.spk-link-accent {
  color: #2d7cff;
  font-weight: 700;
  text-decoration: none;
}

.spk-link-accent:hover {
  text-decoration: underline;
}

/* Auth Footer */
.spk-auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eef3f8;
  font-size: 14px;
  color: #66758a;
}

/* Confirm ID */
.spk-confirm-id {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0f5fc;
  border: 1px solid #e4edf7;
  font-size: 15px;
  font-weight: 700;
  color: #163a78;
}

/* Terms (Register) */
.spk-terms-section {
  border: 1px solid #e4edf7;
  border-radius: 14px;
  overflow: hidden;
}

.spk-terms-head {
  padding: 14px 18px;
  background: #f5f9ff;
  border-bottom: 1px solid #e4edf7;
}

.spk-terms-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #172033;
}

.spk-terms-body {
  padding: 16px 18px;
}

.spk-terms-body .spk-textarea {
  min-height: 120px;
  background: #fafcff;
  border-color: #e4edf7;
}

.spk-terms-agree {
  padding: 14px 18px;
  border-top: 1px solid #e4edf7;
  background: #fafcff;
}

.spk-terms-table-wrap {
  overflow-x: auto;
}

.spk-terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spk-terms-table th,
.spk-terms-table td {
  padding: 12px 14px;
  border: 1px solid #e4edf7;
  text-align: left;
  line-height: 1.6;
}

.spk-terms-table th {
  background: #f0f5fc;
  font-weight: 700;
  color: #344155;
}

.spk-terms-table td {
  color: #4a5b6f;
}

/* Form Sections (Register Form) */
.spk-form-section {
  border: 1px solid #e4edf7;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spk-form-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #172033;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef3f8;
}

/* Cert */
.spk-cert-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.spk-cert-desc {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ecf4ff;
  color: #2d7cff;
  font-size: 11px;
  font-weight: 700;
}

.spk-cert-done {
  padding: 10px 14px;
  border-radius: 10px;
  background: #dff7ea;
  color: #0d8c48;
  font-size: 13px;
  font-weight: 700;
}

/* Address */
.spk-addr-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* File Preview */
.spk-file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.spk-file-preview img {
  max-width: 60px;
  max-height: 60px;
  border-radius: 8px;
  border: 1px solid #e4edf7;
}

/* Sub consents */
.spk-sub-consents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #eef3f8;
}

/* Captcha */
.spk-captcha-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Consent Box */
.spk-consent-box {
  max-height: 200px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #e4edf7;
  border-radius: 12px;
  background: #fafcff;
  font-size: 13px;
  line-height: 1.7;
  color: #4a5b6f;
  margin-bottom: 12px;
}

/* Note */
.spk-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #66758a;
  line-height: 1.7;
}

/* Sound only (accessibility) */
.sound_only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Override gnuboard default styles inside auth pages */
.spk-auth-wrap #fregisterform,
.spk-auth-wrap #fregister,
.spk-auth-wrap #fmemberlogin {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 640px) {
  .spk-auth-wrap {
    padding: 24px 12px 40px;
  }

  .spk-auth-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .spk-field-grid {
    grid-template-columns: 1fr;
  }

  .spk-auth-actions {
    grid-template-columns: 1fr;
  }

  .spk-auth-header h1 {
    font-size: 20px;
  }

  .spk-addr-row {
    flex-direction: column;
    align-items: stretch;
  }

  .spk-input-short {
    max-width: 100%;
  }

  .spk-cert-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}
