/* ==========================================================================
   CHECKERNESIA - Auth Stylesheet
   Login, Register, Forgot Password, Reset Password
   ========================================================================== */

.auth-page {
  min-height: calc(100vh - var(--navbar-height) - var(--bottom-nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-8);
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
}
.auth-logo img {
  width: 36px;
  height: 36px;
}
.auth-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.auth-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block: var(--space-4);
  color: var(--text-3);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.auth-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover {
  text-decoration: underline;
}

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
}

.auth-social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 500;
  font-size: var(--fs-sm);
  cursor: pointer;
  min-height: 44px;
}
.btn-social:hover {
  border-color: var(--primary);
}

/* Password strength */
.password-strength {
  margin-top: var(--space-2);
}
.strength-bar {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-1);
}
.strength-bar span {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: background var(--transition);
}
.strength-bar span.active-weak { background: var(--danger); }
.strength-bar span.active-medium { background: var(--warning); }
.strength-bar span.active-strong { background: var(--success); }
.strength-label {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* Forgot password */
.reset-info {
  padding: var(--space-4);
  background: var(--info-soft);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--info);
  margin-bottom: var(--space-4);
}

/* Tablet */
@media (min-width: 768px) {
  .auth-page {
    min-height: calc(100vh - var(--navbar-height));
  }
  .auth-card {
    padding: var(--space-10);
  }
}
