/* ── Page wrapper ──────────────────────────────────────────── */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ── Card ──────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border-radius: 20px;
}

.auth-card-wide {
  max-width: 640px;
}

/* Your existing .glass-card class provides the glass backdrop —
   add these overrides if needed: */
.glass-card {
  /* Fallback if glass-card not already defined in your theme */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* ── Brand section ─────────────────────────────────────────── */
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  height: 48px;
  margin-bottom: 16px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  margin: 0 0 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted, #6c757d);
  margin: 0;
}

/* Role badge (owner / admin panels) */
.auth-role-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(var(--owner-accent-rgb, 16, 185, 129), 0.15);
  color: var(--owner-accent, #10b981);
}

/* ── Form elements ─────────────────────────────────────────── */
.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: 6px;
}

.glass-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid rgb(121 121 121 / 25%) !important;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #1a1a2e);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.glass-input:focus {
  outline: none;
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background: rgba(255, 255, 255, 0.18);
}

.glass-input::placeholder {
  color: rgba(var(--text-primary-rgb, 26, 26, 46), 0.35);
}

.has-error .glass-input {
  border-color: #e53935;
}

.field-error {
  display: block;
  font-size: 12px;
  color: #e53935;
  margin-top: 4px;
}

/* ── Password field ────────────────────────────────────────── */
.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

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

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted, #6c757d);
  padding: 4px;
  font-size: 15px;
  transition: color 0.2s;
  z-index: 1;
}

.password-toggle:hover {
  color: var(--primary, #4f46e5);
}

/* ── Password strength bar ─────────────────────────────────── */
.password-strength {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}

.strength-label {
  font-size: 11px;
  color: var(--text-muted, #6c757d);
  display: block;
  margin-top: 3px;
}

/* ── Input with left icon ──────────────────────────────────── */
.input-icon-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #6c757d);
  font-size: 14px;
  pointer-events: none;
}

.pl-icon {
  padding-left: 38px;
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
}

.alert-danger {
  background: rgba(229, 57, 53, 0.10);
  border: 1px solid rgba(229, 57, 53, 0.25);
  color: #b91c1c;
}

.alert-info {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #1e40af;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-auth {
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  width: 100%;
  display: block;
}

.btn-auth:hover { opacity: 0.9; }
.btn-auth:active { transform: scale(0.99); }

.btn-primary {
  background: var(--primary, #4f46e5);
  color: #fff;
}

.btn-owner {
  background: var(--owner-accent, #10b981);
  color: #fff;
}

.btn-admin {
  background: #1e293b;
  color: #fff;
}

.btn-admin i { margin-right: 8px; }

/* ── Footer links ──────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted, #6c757d);
  margin-top: 24px;
  margin-bottom: 0;
}

.auth-switch a {
  color: var(--primary, #4f46e5);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-panel-links {
  text-align: center;
  margin-top: 16px;
  font-size: 12.5px;
}

.auth-panel-links a {
  color: var(--text-muted, #6c757d);
  text-decoration: none;
}

.auth-panel-links a:hover { color: var(--primary, #4f46e5); }

.forgot-link {
  font-size: 12px;
  color: var(--primary, #4f46e5) !important;
  text-decoration: none;
  font-weight: 400 !important;
}

.resend-link {
  color: var(--primary, #4f46e5);
  font-size: 13px;
  cursor: pointer;
}

/* ── Form row ──────────────────────────────────────────────── */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 180px;
}

/* ── Checkbox ──────────────────────────────────────────────── */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary, #4f46e5);
  flex-shrink: 0;
}

.form-check-label {
  font-size: 13px;
  color: var(--text-muted, #6c757d);
  cursor: pointer;
  font-weight: 400 !important;
  justify-content: flex-start !important;
}

.form-check-label a {
  color: var(--primary, #4f46e5);
  text-decoration: none;
}

/* ── Admin login page ──────────────────────────────────────── */
.admin-login-body {
  background: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-wrapper {
  width: 100%;
  max-width: 420px;
}

.admin-login-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
}

.admin-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.admin-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #60a5fa;
  margin-bottom: 14px;
}

.admin-login-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 4px;
}

.admin-login-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Override glass-input for dark admin page */
.admin-login-body .glass-input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: #f1f5f9;
}

.admin-login-body .glass-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}

.admin-login-body .auth-form label {
  color: #cbd5e1;
}

.admin-login-body .forgot-link {
  color: #60a5fa !important;
}

.admin-login-body .input-icon {
  color: #475569;
}

.admin-login-footer-note {
  text-align: center;
  font-size: 12px;
  color: #334155;
  margin-top: 20px;
}

/* ── Owner panel theme overrides ───────────────────────────── */
.owner-auth .glass-input:focus {
  border-color: var(--owner-accent, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .form-row  { flex-direction: column; gap: 0; }
  .auth-title { font-size: 20px; }
}



