/* ============================================
   Documenta Theme — Split Auth Layout
   Navy & Gold Palette
   ============================================ */

.auth-split {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: row;
  z-index: 9999;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.auth-hero {
  flex: 0 0 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a192f 0%, #0d1b3e 30%, #112240 60%, #0a192f 100%);
  background-size: 400% 400%;
  animation: heroGradient 20s ease infinite;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.auth-hero-content {
  position: relative;
  z-index: 10;
  max-width: 580px;
  padding: 60px 40px;
  animation: fadeInUp 0.8s ease-out;
}

.auth-hero .auth-logo {
  margin-bottom: 32px;
}

.auth-hero .auth-logo img {
  max-height: 60px;
  filter: brightness(0) invert(1);
}

.auth-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.auth-hero .auth-subhead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px;
  line-height: 1.5;
}

.auth-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border-left: 3px solid #d4a843;
  transition: background 0.2s;
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.benefit-item .benefit-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.auth-hero .auth-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-hero .auth-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.auth-hero .auth-shape--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #d4a843, transparent);
  top: -250px;
  right: -200px;
  animation: floatShape 20s ease-in-out infinite;
}

.auth-hero .auth-shape--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #e8c35c, transparent);
  bottom: -150px;
  left: -120px;
  animation: floatShape 25s ease-in-out infinite reverse;
}

.auth-hero .auth-shape--3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #d4a843, transparent);
  top: 30%;
  right: 10%;
  animation: floatShape 18s ease-in-out infinite 2s;
}

.auth-form-panel {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.auth-form-inner {
  width: 100%;
  max-width: 380px;
  padding: 40px 32px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.auth-form-inner .form-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-form-inner .form-logo a {
  display: inline-block;
}

.auth-form-inner .form-logo img {
  display: inline-block;
  max-height: 50px;
  width: auto;
}

.auth-form-inner .form-logo img {
  max-height: 40px;
}

.auth-form-inner h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0a192f;
  margin: 0 0 24px;
  text-align: center;
}

.auth-form-inner .form-subtitle {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  margin: 0 0 28px;
}

.auth-form-inner .form-group {
  margin-bottom: 20px;
}

.auth-form-inner label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.auth-form-inner .input-wrapper {
  position: relative;
}

.auth-form-inner .input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.auth-form-inner .input-wrapper input.form-control {
  padding-left: 36px;
  height: 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form-inner .input-wrapper input.form-control:focus {
  border-color: #d4a843;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.auth-form-inner .input-wrapper input.form-control::placeholder {
  color: #94a3b8;
}

.auth-form-inner .checkbox {
  margin-bottom: 16px;
}

.auth-form-inner .checkbox label {
  font-weight: 400;
  color: #475569;
}

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}

.btn-auth.btn-primary-auth {
  background: linear-gradient(135deg, #d4a843, #c9a13b);
  color: #0a192f;
  box-shadow: 0 4px 14px rgba(212, 168, 67, 0.3);
}

.btn-auth.btn-primary-auth:hover {
  background: linear-gradient(135deg, #e8c35c, #d4a843);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
}

.btn-auth.btn-primary-auth:active {
  transform: translateY(0);
}

.btn-auth.btn-link-auth {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  margin-top: 8px;
}

.btn-auth.btn-link-auth:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.auth-form-inner .auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-form-inner .auth-links a {
  color: #d4a843;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-form-inner .auth-links a:hover {
  color: #c9a13b;
  text-decoration: underline;
}

.auth-form-inner .alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-form-inner .alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-form-inner .alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-form-inner .auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: #94a3b8;
}

.auth-form-inner .validation-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.password-field-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 6px;
}

.password-field-row label {
  margin-bottom: 0;
}

.password-field-row a {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
}

.password-field-row a:hover {
  color: #d4a843;
}

.auth-form-inner .g-recaptcha {
  margin-bottom: 16px;
}

/* ============================================
   2-Step Registration
   ============================================ */

.row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.step-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s;
}

.step-item--active .step-number {
  background: #d4a843;
  color: #0a192f;
}

.step-item--active .step-label {
  color: #0a192f;
  font-weight: 600;
}

.step-item--done .step-number {
  background: #22c55e;
  color: #fff;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
}

.step-item--done ~ .step-connector {
  background: #22c55e;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.form-step.step-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.step-nav .btn-auth {
  flex: 1;
}

.step-nav .step-back {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  margin-top: 0;
}

.step-nav .step-back:hover {
  background: #e2e8f0;
  color: #334155;
}

/* Password visibility toggle */
.input-wrapper input.form-control[type="password"],
.input-wrapper input.form-control.is-password {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 3;
  color: #94a3b8;
  line-height: 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.password-toggle:hover {
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
}

.password-toggle .eye-icon--closed {
  display: none;
}

.password-toggle.is-visible .eye-icon--open {
  display: none;
}

.password-toggle.is-visible .eye-icon--closed {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   Register Page — Scrollable Form Panel
   ============================================ */

.auth-split--register {
  flex-direction: row;
}

.auth-split--register .auth-hero {
  flex: 0 0 60%;
}

.auth-split--register .auth-form-panel {
  flex: 0 0 40%;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  align-items: flex-start;
}

.auth-form-inner--wide {
  max-width: 440px;
  padding-top: 48px;
}

.auth-split--register .form-logo {
  display: none;
}

.register-section {
  margin-bottom: 24px;
  padding-top: 4px;
}

.register-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #0a192f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d4a843;
}

.register-terms-wrapper .checkbox {
  margin-bottom: 0;
}

.register-section .form-group {
  margin-bottom: 16px;
}

.honey-element {
  display: none;
}

.mtop10 {
  margin-top: 10px;
}

.mtop15 {
  margin-top: 15px;
}

@media (max-width: 768px) {
  .auth-split--register {
    flex-direction: column;
  }

  .auth-split--register .auth-hero {
    flex: none;
  }

  .auth-split--register .auth-form-panel {
    flex: none;
    overflow-y: visible;
    box-shadow: none;
  }

  .auth-form-inner--wide {
    max-width: 100%;
  }

  .register-section-title {
    font-size: 13px;
  }

  .auth-form-inner .form-group {
    margin-bottom: 14px;
  }
}

@media (max-width: 768px) {
  .auth-split {
    flex-direction: column;
    position: static;
    overflow: auto;
  }

  .auth-hero {
    flex: none;
    padding: 40px 20px 24px;
    min-height: auto;
    animation: none;
  }

  .auth-hero-content {
    max-width: 100%;
    padding: 20px;
  }

  .auth-hero h1 {
    font-size: 26px;
  }

  .auth-hero .auth-subhead {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .auth-benefits {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    flex: none;
    box-shadow: none;
    padding: 0 16px 40px;
  }

  .auth-form-inner {
    max-width: 100%;
    padding: 24px 16px;
  }

  .auth-hero .auth-shape--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
  }

  .auth-hero .auth-shape--2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -60px;
  }

  .auth-hero .auth-shape--3 {
    display: none;
  }
}
