@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ep-deep-blue:   #1A5276;
  --ep-ocean-teal:  #1A8FA0;
  --ep-emerald:     #2ECC71;
  --ep-mint:        #A8E6CF;
  --ep-white:       #FFFFFF;
  --ep-warm-white:  #F4F6F7;
  --ep-light-gray:  #D5D8DC;
  --ep-dark-teal:   #117A65;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--ep-warm-white);
  color: #2C3E50;
}

a { color: var(--ep-ocean-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Auth layout ─────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ep-deep-blue) 0%, var(--ep-ocean-teal) 100%);
}

.auth-card {
  background: var(--ep-white);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

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

.auth-logo .brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--ep-deep-blue);
}

.auth-logo .brand span {
  color: var(--ep-emerald);
}

.auth-logo .tagline {
  font-size: 13px;
  color: #7F8C8D;
  margin-top: 4px;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ep-deep-blue);
  margin-bottom: 24px;
  text-align: center;
}

/* ── Forms ───────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #2C3E50;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ep-light-gray);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--ep-white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--ep-ocean-teal);
  box-shadow: 0 0 0 3px rgba(26,143,160,0.12);
}

.form-group .error {
  font-size: 13px;
  color: #C0392B;
  margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { opacity: 0.9; text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ep-deep-blue);
  color: var(--ep-white);
  width: 100%;
}

.btn-success {
  background: var(--ep-emerald);
  color: #1A3A2A;
}

/* ── Flash messages ──────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.flash-success { background: #EAFAF1; color: #1E8449; }
.flash-error   { background: #FDEDEC; color: #C0392B; }
.flash-warning { background: #FDFEFE; color: #B7950B; border: 1px solid #F0E68C; }
.flash-info    { background: #EBF5FB; color: #1A5276; }

/* ── Auth footer link ────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #7F8C8D;
}

@keyframes spin { to { transform: rotate(360deg); } }
