/* ========== AUTHENTICATION PAGES ========== */

.auth-main {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px - 200px);
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  background: linear-gradient(135deg, rgba(14,20,32,1) 0%, rgba(22,31,50,0.5) 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(94,234,212,0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.auth-container::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242,169,59,0.03) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.auth-panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease-out;
}

.auth-panel.hidden {
  display: none;
}

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

.auth-head {
  margin-bottom: 32px;
  text-align: center;
}

.auth-head h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.auth-head p {
  font-size: 14px;
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========== FORM GROUPS ========== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.form-group input {
  background: rgba(14,20,32,0.6);
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s ease;
  outline: none;
}

.form-group input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-group input:focus {
  border-color: var(--cyan);
  background: rgba(94,234,212,0.05);
  box-shadow: 0 0 0 2px rgba(94,234,212,0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: #FF6B6B;
}

.error-msg {
  font-size: 12px;
  color: #FF6B6B;
  display: none;
  font-family: var(--mono);
}

.error-msg.show {
  display: block;
}

.success-msg {
  font-size: 13px;
  color: var(--cyan);
  display: none;
  font-family: var(--mono);
  padding: 10px 12px;
  background: rgba(94,234,212,0.1);
  border-left: 2px solid var(--cyan);
  border-radius: 4px;
}

.success-msg.show {
  display: block;
}

/* ========== CHECKBOXES ========== */

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.checkbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--panel-line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox input[type="checkbox"]:hover {
  border-color: var(--cyan);
}

.checkbox input[type="checkbox"]:checked {
  background: var(--cyan);
  border-color: var(--cyan);
  position: relative;
}

.checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.checkbox a.link-text {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.checkbox a.link-text:hover {
  border-bottom-color: var(--cyan);
}

/* ========== PASSWORD STRENGTH ========== */

.password-strength {
  height: 4px;
  background: var(--panel-line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
  background: #FF6B6B;
}

.strength-bar.weak {
  width: 33%;
  background: #FF6B6B;
}

.strength-bar.fair {
  width: 66%;
  background: var(--amber);
}

.strength-bar.good {
  width: 100%;
  background: var(--cyan);
}

/* ========== FORM OPTIONS ========== */

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: 8px;
}

.link-text {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.link-text:hover {
  border-bottom-color: var(--cyan);
}

/* ========== BUTTONS ========== */

.btn-full {
  width: 100%;
  margin-top: 4px;
}

.btn-primary {
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--panel-line);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ========== DIVIDER ========== */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
}

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

.auth-divider span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ========== AUTH INFO CARDS ========== */

.auth-info {
  background: var(--ink);
  border-top: 1px solid var(--panel-line);
  padding: 64px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.info-card {
  text-align: center;
}

.info-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.info-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 480px) {
  .auth-container {
    padding: 40px 16px;
  }

  .auth-panel {
    padding: 32px 24px;
  }

  .auth-head h1 {
    font-size: 24px;
  }

  .form-options {
    flex-direction: column;
    gap: 8px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}