/* Auth Container - Two Column Layout */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--bg);
}

/* Left Side - Branding */
.auth-left {
  background: linear-gradient(135deg, #0f1724 0%, #1a2a4a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 50%;
}

.auth-brand {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.auth-brand h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.auth-brand h1 span {
  color: var(--blue);
}

.auth-tagline {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-illustration {
  position: relative;
  z-index: 1;
}

.auth-illustration-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.auth-illustration-content p {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  max-width: 400px;
}

.auth-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 13px;
  transition: 0.2s;
}

.auth-feature:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.auth-feature i {
  color: var(--accent-3);
  font-size: 18px;
}

/* Right Side - Form */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.auth-subtitle {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 6px;
}

/* Form Elements - Using global styles */
.auth-form .field {
  margin-bottom: 18px;
}

.auth-form .field label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
}

.auth-form .field input,
.auth-form .field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--sans);
}

.auth-form .field input:focus,
.auth-form .field select:focus {
  border-color: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--surface);
  outline: none;
}

.auth-form .field input::placeholder {
  color: var(--ink-4);
}

.auth-form .field .input-with-icon {
  position: relative;
}

.auth-form .field .input-with-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 16px;
}

.auth-form .field .input-with-icon input,
.auth-form .field .input-with-icon select {
  padding-left: 40px;
}

.auth-form .field .input-with-icon select {
  appearance: auto;
  cursor: pointer;
}

.auth-form .field .input-with-icon .toggle-password {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}

.auth-form .field .input-with-icon .toggle-password:hover {
  color: var(--ink);
}

/* Options Row */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
}

.auth-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.auth-options label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-3);
  cursor: pointer;
}

.auth-link {
  color: var(--accent-3);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
}

.auth-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Buttons - Using global button styles */
.auth-btn {
  width: 100%;
  padding: 11px;
  background: var(--accent-3);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.auth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.auth-btn-secondary:hover {
  background: var(--surface-2);
  box-shadow: none;
  transform: none;
  border-color: var(--ink-3);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--ink-3);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Footer Links */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}

.auth-footer .auth-link {
  font-weight: 600;
}

/* Password Strength */
.password-strength {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.password-strength .strength-bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  transition: 0.3s;
}

.password-strength .strength-bar.active.weak {
  background: var(--danger);
}

.password-strength .strength-bar.active.medium {
  background: var(--warn);
}

.password-strength .strength-bar.active.strong {
  background: var(--ok);
}

.password-strength .strength-label {
  font-size: 11px;
  color: var(--ink-3);
  min-width: 45px;
  text-align: right;
}

/* Success / Error Messages */
.auth-message {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-message.success {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid #bbf7d0;
}

.auth-message.error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fca5a5;
}

.auth-message.info {
  background: var(--accent-soft);
  color: var(--accent-3);
  border: 1px solid #bfdbfe;
}

.auth-message i {
  font-size: 18px;
}

/* Animation for spin */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 30px 20px;
    min-height: 100vh;
  }

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

@media (max-width: 480px) {
  .auth-features {
    grid-template-columns: 1fr;
  }

  .auth-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .auth-form-header h2 {
    font-size: 24px;
  }

  .auth-right {
    padding: 20px 16px;
  }
}