/**
 * ════════════════════════════════════════════════════════════════════
 * SKILLFORGE — Auth Page Styles
 * ════════════════════════════════════════════════════════════════════
 */

/* ── Auth Layout ──────────────────────────────────────────────── */

.sf-auth-page {
  min-height: 100vh;
  display: flex;
}

.sf-auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.sf-auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

.sf-auth-brand {
  margin-bottom: 40px;
}

.sf-auth-brand h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.sf-auth-brand p {
  color: var(--sf-gray-500);
  font-size: 16px;
}

/* Side visual panel */
.sf-auth-visual {
  flex: 1;
  background: var(--sf-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.sf-auth-visual::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 179, 126, 0.15), transparent 70%);
  border-radius: 50%;
}

.sf-auth-visual::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 179, 126, 0.08), transparent 70%);
  border-radius: 50%;
}

.sf-auth-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 400px;
}

.sf-auth-visual-content h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 16px;
}

.sf-auth-visual-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  line-height: 1.7;
}

.sf-auth-visual-graphic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 179, 126, 0.2), rgba(0, 179, 126, 0.05));
  border: 1px solid rgba(0, 179, 126, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.sf-auth-visual-graphic svg {
  width: 80px;
  height: 80px;
  color: var(--sf-emerald);
}

@media (max-width: 900px) {
  .sf-auth-visual { display: none; }
  .sf-auth-panel { padding: 32px 20px; }
}

/* ── Form Elements ────────────────────────────────────────────── */

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

.sf-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--sf-gray-700);
  margin-bottom: 6px;
}

.sf-input-wrap {
  position: relative;
}

.sf-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--sf-white);
  border: 1.5px solid var(--sf-gray-200);
  border-radius: var(--sf-radius-sm);
  font-family: var(--sf-font-body);
  font-size: 15px;
  color: var(--sf-gray-800);
  transition: border-color var(--sf-duration) var(--sf-ease), box-shadow var(--sf-duration) var(--sf-ease);
  outline: none;
}

.sf-input::placeholder { color: var(--sf-gray-400); }

.sf-input:focus {
  border-color: var(--sf-emerald);
  box-shadow: 0 0 0 3px rgba(0, 179, 126, 0.1);
}

.sf-input-error {
  border-color: var(--sf-red) !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.sf-input-success {
  border-color: var(--sf-emerald) !important;
}

.sf-field-error {
  display: none;
  font-size: 13px;
  color: var(--sf-red);
  margin-top: 4px;
  font-weight: 500;
}

/* Password toggle */
.sf-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sf-gray-400);
  padding: 4px;
  display: flex;
  align-items: center;
}
.sf-pw-toggle:hover { color: var(--sf-gray-600); }

.sf-input-wrap .sf-input { padding-right: 44px; }

/* Checkbox */
.sf-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.sf-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sf-emerald);
  margin-top: 2px;
  flex-shrink: 0;
}

.sf-checkbox-group label {
  font-size: 14px;
  color: var(--sf-gray-600);
  cursor: pointer;
  line-height: 1.5;
}

.sf-checkbox-group label a {
  font-weight: 600;
}

/* Form extras */
.sf-form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sf-form-extras a {
  font-size: 14px;
  font-weight: 600;
}

/* Form footer */
.sf-form-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--sf-gray-500);
}

.sf-form-footer a {
  font-weight: 600;
}

/* Divider */
.sf-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--sf-gray-400);
  font-size: 13px;
}

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

.sf-divider span {
  padding: 0 16px;
}
