/* ============================================================
   CENNIL AUTH PAGES — Shared Stylesheet
   Covers: login, register, lost password, register complete
   ============================================================ */

/* PAGE WRAPPER */
.auth-page {
  min-height: calc(100vh - 120px);
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 60%, #16212b 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
}

/* CARD */
.auth-card {
  background: #1e2632;
  border: 1px solid #3a4556;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.40);
  width: 100%;
  overflow: hidden;
}
.auth-card--sm { max-width: 440px; }
.auth-card--md { max-width: 640px; }

/* CARD HEADER */
.auth-card-header {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  padding: 28px 36px 24px;
  text-align: center;
}
.auth-card-header .logo-rscm {
  font-size: 30px;
  font-weight: 900;
  font-family: 'Merriweather', serif;
  letter-spacing: -1px;
  margin-bottom: 6px;
  color: #e0e8f0;
}
.auth-card-header .logo-rscm .logo-teal { color: #D4AF37; }
.auth-card-header .logo-rscm sup { font-size: 15px; color: #ff6b7a; }
.auth-card-header p { font-size: 13px; color: #a0aab8; margin-top: 4px; }

/* CARD BODY */
.auth-card-body { padding: 32px 36px 28px; }
.auth-card-body h2 {
  font-size: 20px;
  font-weight: 800;
  color: #e0e8f0;
  margin-bottom: 4px;
  font-family: 'Merriweather', serif;
}
.auth-subtitle {
  font-size: 13px;
  color: #8a92a0;
  margin-bottom: 24px;
}

/* ============================================================
   FORM FIELDS (direct auth-field)
   ============================================================ */
.auth-field { margin-bottom: 18px; }
.auth-field > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #c8d0d8;
  margin-bottom: 6px;
}

/* Shared input styles */
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field select,
.auth-card-body .fields input[type="text"],
.auth-card-body .fields input[type="email"],
.auth-card-body .fields input[type="password"],
.auth-card-body .fields select,
.auth-card-body .fields textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #3a4556;
  border-radius: 7px;
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  color: #e0e8f0;
  background: #252d38;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.auth-field input:focus,
.auth-field select:focus,
.auth-card-body .fields input:focus,
.auth-card-body .fields select:focus,
.auth-card-body .fields textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
  background: #2a3340;
}

.auth-field .field-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.auth-field .field-footer a { font-size: 12px; color: #D4AF37; font-weight: 600; }
.auth-field .field-footer a:hover { text-decoration: underline; }

/* ============================================================
   PKP FIELDSET STRUCTURE within auth card
   (used by registrationForm.tpl and other included forms)
   ============================================================ */
.auth-card-body fieldset {
  border: none;
  padding: 0;
  margin-bottom: 28px;
}
.auth-card-body fieldset > legend {
  font-size: 12px;
  font-weight: 800;
  color: #c8d0d8;
  padding: 0 0 8px 10px;
  margin-bottom: 16px;
  width: 100%;
  border-bottom: 1px solid #3a4556;
  border-left: 3px solid #D4AF37;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.auth-card-body .fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-card-body .fields > div { display: flex; flex-direction: column; }
.auth-card-body .fields .label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #c8d0d8;
  margin-bottom: 6px;
}
.auth-card-body .fields .required { color: #ff6b7a; margin-left: 2px; }

/* Checkbox / optin within PKP .fields */
.auth-card-body .fields .optin label,
.auth-card-body .fields label {
  cursor: pointer;
}
.auth-card-body .fields input[type="checkbox"] {
  width: auto;
  accent-color: #00d4ff;
  cursor: pointer;
  flex-shrink: 0;
}
.auth-card-body .fields label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #8a92a0;
  font-weight: 400;
}

/* ============================================================
   REMEMBER ME / STANDALONE CHECKBOX
   ============================================================ */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.auth-remember input[type="checkbox"] {
  accent-color: #00d4ff;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.auth-remember label { font-size: 13px; color: #8a92a0; cursor: pointer; }

/* ============================================================
   MESSAGES & ERRORS
   ============================================================ */
.auth-error,
.auth-card-body .pkp_form_error {
  background: #3d2626;
  border: 1px solid #7d3a3a;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff9999;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.auth-error::before,
.auth-card-body .pkp_form_error::before { content: '⚠'; font-size: 15px; flex-shrink: 0; }

.auth-message {
  background: #263540;
  border: 1px solid #4a7a88;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  color: #7ce0ff;
  margin-bottom: 18px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-auth-submit {
  width: 100%;
  background: #D4AF37;
  color: #0f1419;
  padding: 12px;
  border: none;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .3px;
}
.btn-auth-submit:hover { background: #00b8d4; }

/* ============================================================
   LINK ROW (register / login / back links)
   ============================================================ */
.auth-link-row {
  text-align: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #3a4556;
  font-size: 13px;
  color: #8a92a0;
}
.auth-link-row a { color: #D4AF37; font-weight: 700; }
.auth-link-row a:hover { text-decoration: underline; }

/* ============================================================
   CAPTCHA
   ============================================================ */
.auth-captcha { margin-bottom: 18px; }

/* ============================================================
   REGISTER COMPLETE — SUCCESS CARD
   ============================================================ */
.auth-success-icon {
  width: 64px;
  height: 64px;
  background: #263540;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.auth-success-text {
  text-align: center;
  color: #8a92a0;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.auth-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.auth-action-list li { margin-bottom: 10px; }
.auth-action-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #3a4556;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #c8d0d8;
  transition: all .2s;
}
.auth-action-list a:hover {
  border-color: #D4AF37;
  color: #D4AF37;
  background: #263540;
}
.auth-action-list .action-icon { font-size: 18px; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .auth-page { padding: 24px 12px; }
  .auth-card-body { padding: 24px 20px 20px; }
  .auth-card-header { padding: 22px 20px 18px; }
}
