/* assets/css/auth.css — GV Elevate Login & Portal Styles */

/* ── Custom properties ─────────────────────────────────────────────────────── */
:root {
  --gv-navy:      #1a3a5c;
  --gv-blue:      #2563eb;
  --gv-blue-lt:   #eff6ff;
  --gv-green:     #059669;
  --gv-orange:    #d97706;
  --gv-purple:    #7c3aed;
  --gv-teal:      #0891b2;
  --gv-red:       #dc2626;
  --gv-surface:   #f4f7fb;
  --gv-border:    #e2e8f0;
  --gv-text:      #1e293b;
  --gv-muted:     #64748b;
  --radius:       12px;
  --shadow-card:  0 4px 24px rgba(0,0,0,.09);
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gv-text);
  background: var(--gv-surface);
  margin: 0;
}

/* ── Auth layout (login page) ──────────────────────────────────────────────── */
.gve-auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, #0f2544 0%, #1a3a5c 50%, #1e4976 100%);
  padding: 1.5rem;
}

.gve-auth-main {
  width: 100%;
  max-width: 440px;
}

.gve-auth-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
}

/* ── Brand block ───────────────────────────────────────────────────────────── */
.gve-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.gve-brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--gv-navy), var(--gv-blue));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.gve-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gv-navy);
  margin: 0 0 .25rem;
  letter-spacing: -.3px;
}

.gve-brand-sub {
  font-size: .85rem;
  color: var(--gv-muted);
  margin: 0;
}

/* ── Form controls ─────────────────────────────────────────────────────────── */
.form-control:focus {
  border-color: var(--gv-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gv-blue) 0%, var(--gv-navy) 100%);
  border: none;
  font-weight: 600;
  letter-spacing: .3px;
  transition: opacity .2s, transform .1s;
}
.btn-primary:hover  { opacity: .92; }
.btn-primary:active { transform: scale(.98); }

.btn-success {
  background: linear-gradient(135deg, var(--gv-green) 0%, #047857 100%);
  border: none;
  font-weight: 600;
  transition: opacity .2s, transform .1s;
}
.btn-success:hover  { opacity: .92; }
.btn-success:active { transform: scale(.98); }

/* ── OTP input ─────────────────────────────────────────────────────────────── */
.gve-otp-input {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .6rem;
  color: var(--gv-navy);
  border-width: 2px;
}

/* ── Portal: top nav ───────────────────────────────────────────────────────── */
.gve-portal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, var(--gv-navy), #1e4976);
  padding: .875rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.gve-nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.2px;
}

.gve-nav-brand i { font-size: 1.4rem; opacity: .9; }

.gve-nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gve-nav-greeting {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* ── Portal: main content ──────────────────────────────────────────────────── */
.gve-portal-main {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}

.gve-portal-header { margin-bottom: 1.75rem; }
.gve-portal-title  { font-size: 1.5rem; font-weight: 800; color: var(--gv-navy); margin: 0 0 .35rem; }
.gve-portal-sub    { color: var(--gv-muted); margin: 0; font-size: .95rem; }

/* ── Search ────────────────────────────────────────────────────────────────── */
.gve-search-wrap { max-width: 360px; }

/* ── Resource grid ─────────────────────────────────────────────────────────── */
.gve-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gve-resource-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--gv-border);
  transition: box-shadow .2s;
}

.gve-resource-section:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Section headers ───────────────────────────────────────────────────────── */
.gve-section-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.25rem;
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.gve-section-header i  { font-size: 1.15rem; }
.gve-section-header h3 { margin: 0; font-size: inherit; font-weight: inherit; }

.gve-section-blue   { background: var(--gv-blue-lt);         color: var(--gv-blue); }
.gve-section-green  { background: #ecfdf5;                   color: var(--gv-green); }
.gve-section-orange { background: #fffbeb;                   color: var(--gv-orange); }
.gve-section-purple { background: #f5f3ff;                   color: var(--gv-purple); }
.gve-section-teal   { background: #ecfeff;                   color: var(--gv-teal); }
.gve-section-red    { background: #fef2f2;                   color: var(--gv-red); }

/* ── Resource cards ────────────────────────────────────────────────────────── */
.gve-section-cards { padding: .5rem 0; }

.gve-resource-card {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .15rem .5rem;
  padding: .7rem 1.25rem;
  text-decoration: none;
  color: var(--gv-text);
  border-bottom: 1px solid var(--gv-border);
  transition: background .15s;
  position: relative;
}

.gve-resource-card:last-child { border-bottom: none; }

.gve-resource-card:hover {
  background: var(--gv-surface);
  text-decoration: none;
  color: var(--gv-blue);
}

.gve-card-label {
  font-weight: 600;
  font-size: .9rem;
  width: 100%;
}

.gve-card-desc {
  font-size: .8rem;
  color: var(--gv-muted);
  flex: 1;
}

.gve-card-arrow {
  color: var(--gv-muted);
  font-size: .85rem;
  flex-shrink: 0;
  align-self: center;
  transition: color .15s;
}

.gve-resource-card:hover .gve-card-arrow { color: var(--gv-blue); }

/* ── Hidden on search ──────────────────────────────────────────────────────── */
.gve-resource-card.search-hidden { display: none; }
.gve-resource-section.section-empty { display: none; }

/* ── Portal footer ─────────────────────────────────────────────────────────── */
.gve-portal-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--gv-muted);
  font-size: .8rem;
  border-top: 1px solid var(--gv-border);
  margin-top: 2rem;
}

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.alert { border-radius: var(--radius); font-size: .9rem; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .gve-auth-card         { padding: 2rem 1.25rem; }
  .gve-portal-nav        { padding: .75rem 1rem; }
  .gve-nav-greeting      { display: none; }
  .gve-resource-grid     { grid-template-columns: 1fr; gap: 1rem; }
  .gve-portal-main       { margin: 1rem auto; }
}

/* ── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
