/* ============================================================
   auth.css — Login & Register Pages
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&family=Rajdhani:wght@600;700&display=swap');

:root {
  --navy:    #0A1628;
  --saffron: #FF6B00;
  --green:   #138808;
  --correct: #16A34A;
  --wrong:   #DC2626;
  --gray:    #6B7A90;
  --off:     #F5F7FA;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Noto Sans', sans-serif;
  min-height: 100vh;
  background: var(--navy);
}

/* ── Background ── */
.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,107,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(19,136,8,0.08) 0%, transparent 50%),
    var(--navy);
}

/* ── Card ── */
.auth-card {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* ── Header ── */
.auth-header {
  background: linear-gradient(135deg, #0D1F38 0%, #0A1628 100%);
  padding: 32px 28px 24px;
  text-align: center;
  border-bottom: 3px solid var(--saffron);
}
.auth-logo {
  font-size: 48px;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(255,107,0,0.4));
}
.auth-header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.auth-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ── Form area ── */
.auth-form {
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.inp-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}
.input-wrap input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  color: #111827;
  background: #FAFAFA;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.input-wrap input:focus {
  border-color: var(--saffron);
  background: #FFFBF7;
}
.toggle-pwd {
  position: absolute;
  right: 12px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

/* ── Submit button ── */
.btn-auth {
  margin: 20px 28px 0;
  padding: 14px;
  background: linear-gradient(135deg, var(--saffron) 0%, #FF4500 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: calc(100% - 56px);
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 16px rgba(255,107,0,0.35);
  display: block;
  text-align: center;
}
.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,0.45);
}

/* ── Alerts ── */
.alert {
  margin: 20px 28px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.alert-error  { background: #FEF2F2; border-left: 4px solid var(--wrong);   color: #7F1D1D; }
.alert-success{ background: #F0FDF4; border-left: 4px solid var(--correct); color: #14532D; }

/* ── Switch link ── */
.auth-switch {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--gray);
}
.auth-switch a {
  color: var(--saffron);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card { border-radius: 14px; }
  .auth-header { padding: 24px 20px 18px; }
  .auth-form { padding: 20px 20px 0; gap: 12px; }
  .btn-auth { margin: 16px 20px 0; width: calc(100% - 40px); }
  .alert { margin: 16px 20px 0; }
  .auth-switch { padding: 16px; }
}
