/* mycareer applicant portal — shared layout & components.
 * Layering: green body (#4cad49) > gray content panel (#f1f1f1) > white cards. */

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #4cad49;
  min-height: 100vh;
  color: #1a1a1a;
}

body {
  display: flex;
  flex-direction: column;
}

/* ─── Header (green, logo left) ─────────────────────────── */
.site-header {
  background: #4cad49;
  color: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.header-brand img { height: 40px; width: auto; display: block; }

.header-brand-sublabel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
}

.header-nav a:hover { opacity: 1; text-decoration: underline; }

/* ─── Main / gray content panel ─────────────────────────── */
.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-panel {
  flex: 1;
  background: #f1f1f1;
  width: 100%;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── White card ────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 44px 36px;
  max-width: 440px;
  width: 100%;
}

.card--wide { max-width: 520px; }

.card-header { text-align: center; margin-bottom: 28px; }

.card-badge {
  display: inline-block;
  background: #4cad49;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.card-subtitle a { color: #4cad49; text-decoration: none; font-weight: 600; }
.card-subtitle a:hover { text-decoration: underline; }

/* ─── Form fields ───────────────────────────────────────── */
.field { margin-bottom: 16px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.field-row .field { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #4cad49;
  box-shadow: 0 0 0 3px rgba(76, 173, 73, 0.15);
}

.field-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 13px 24px;
  background: #4cad49;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-primary:hover  { background: #3d9a3b; }
.btn-primary:active { background: #358535; }

/* Outlined secondary actions (Forgot / Enroll row) */
.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px auto 0;
  max-width: 75%;
}

.secondary-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #4cad49;
  color: #4cad49;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease, transform 0.04s ease;
  user-select: none;
}

.secondary-actions a:hover  { background: #4cad49; color: #fff; }
.secondary-actions a:active { transform: translateY(1px); }
.secondary-actions a:focus-visible {
  outline: 3px solid rgba(76, 173, 73, 0.35);
  outline-offset: 2px;
}

/* ─── Flash messages ────────────────────────────────────── */
.flash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.flash.error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash.success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* ─── Footer (green) ────────────────────────────────────── */
.site-footer {
  background: #4cad49;
  color: #fff;
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  font-weight: 600;
}

.site-footer a:hover { opacity: 1; text-decoration: underline; }

.site-footer .footer-links { margin-top: 4px; opacity: 0.92; }
.site-footer .footer-links a { margin: 0 6px; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner       { padding: 12px 16px; }
  .header-brand img       { height: 32px; }
  .header-brand-sublabel  { font-size: 11px; }
  .header-nav a       { font-size: 13px; }
  .content-panel      { padding: 24px 12px; }
  .card               { padding: 32px 22px; }
  .card-title         { font-size: 20px; }
  .field-row          { grid-template-columns: 1fr; gap: 0; }
  .field-row .field   { margin-bottom: 16px; }
}
