/* v2 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #F26522;
  --navy: #1B2A4A;
  --gold: #FFC107;
  --white: #FFFFFF;
  --light-grey: #F5F5F5;
  --mid-grey: #E0E0E0;
  --text-dark: #1B2A4A;
  --text-muted: #6B7280;
  --success: #22C55E;
  --error: #EF4444;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text-dark);
  overflow: hidden;
}

#app {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* LOGIN SCREEN */
.login-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--navy);
}

.login-hero {
  background: var(--orange);
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -1px;
}

.login-hero h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
}

.login-hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.login-form-wrap {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px 40px;
  flex: 1;
  margin-top: -16px;
}

.login-form-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--mid-grey);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.btn-primary:active { opacity: 0.85; }

.btn-secondary {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.btn-secondary:active { opacity: 0.85; }

.error-msg {
  background: #FEE2E2;
  color: var(--error);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}

.error-msg.visible { display: block; }

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

/* HOME SCREEN */
.home-header {
  background: var(--orange);
  padding: 48px 24px 24px;
}

.home-header h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}

.home-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

.home-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.action-card {
  background: var(--white);
  border: 2px solid var(--mid-grey);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.action-card:active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,101,34,0.15);
}

.action-card.primary {
  background: var(--orange);
  border-color: var(--orange);
}

.action-card.primary h3,
.action-card.primary p { color: var(--white); }

.action-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.action-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.action-card .card-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.home-stats {
  background: var(--navy);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
}

.stat-item { text-align: center; }

.stat-item .stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}

.stat-item .stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.consent-banner {
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.consent-banner strong { color: var(--gold); }