/* ===========================================================
   LOGIN PAGE
=========================================================== */
.hero-banner {
  position: relative;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,184,28,0.16), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(37,105,214,0.35), transparent 50%),
    linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
  padding: 56px 0 90px;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 64px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--gold-400); }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  color: #fff;
  margin: 14px 0 16px;
  letter-spacing: -0.3px;
}
.hero-copy h1 span { color: var(--gold-500); }
.hero-copy p {
  color: #c5d2e8;
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 28px;
}
.hero-stats {
  display: flex;
  gap: 28px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
}
.hero-stats div span {
  font-size: 12.5px;
  color: var(--gold-400);
}

/* Login card */
.login-card {
  background: var(--surface-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 36px 34px 32px;
  position: relative;
}
.login-card::before {
  content: "";
  position: absolute;
  top: -3px; left: 24px; right: 24px; height: 6px;
  background: linear-gradient(90deg, var(--gold-500), var(--navy-600));
  border-radius: 0 0 8px 8px;
}
.login-head { margin-bottom: 22px; }
.login-head h2 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--navy-900);
  margin: 4px 0 6px;
}
.login-head p { font-size: 13.5px; color: var(--ink-500); margin: 0; }

.field { margin-bottom: 18px; }
.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 7px;
}
.field label .req { color: var(--danger-600); }
.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-300); pointer-events: none;
}
.field input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: var(--font-body);
  background: var(--surface-1);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.field input:focus {
  outline: none;
  border-color: var(--navy-600);
  background: #fff;
  box-shadow: 0 0 0 4px var(--navy-100);
}
.field-hint { font-size: 12px; color: var(--ink-500); margin-top: 6px; }
.field-error {
  font-size: 12.5px;
  color: var(--danger-600);
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 5px;
}

/* Captcha row */
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.captcha-row .input-wrap { flex: 1; }
.captcha-box {
  width: 132px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(48deg, rgba(255,184,28,0.18) 0 8px, transparent 8px 16px),
    var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.captcha-box span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 5px;
  color: #fff;
  transform: skewX(-6deg);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
}
.captcha-box::after {
  content: "";
  position: absolute; left: 8%; right: 8%; top: 50%;
  height: 2px; background: rgba(255,184,28,0.55);
  transform: rotate(-4deg);
}
.captcha-refresh {
  width: 46px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700);
  transition: all 0.2s;
}
.captcha-refresh:hover { background: var(--navy-100); border-color: var(--navy-600); color: var(--navy-700); transform: rotate(60deg); }

.login-actions { margin-top: 26px; }
.login-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-500);
}
.login-foot a { color: var(--navy-600); font-weight: 600; }
.login-foot a:hover { text-decoration: underline; }

.alert-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--gold-100);
  border: 1px solid #f3d488;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 12.5px;
  color: #7a5a05;
  margin-bottom: 20px;
}

/* ===========================================================
   NOTICES SECTION
=========================================================== */
.notices-section { padding: 56px 0 24px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 25px;
  color: var(--navy-900);
  margin: 6px 0 0;
}
.section-head a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-600);
  display: flex; align-items: center; gap: 5px;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.notice-card {
  background: var(--surface-0);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.notice-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: transparent;
}
.notice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.notice-date { font-size: 12px; color: var(--ink-300); font-family: var(--font-mono); }
.notice-card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--navy-900);
  margin: 0 0 10px;
}
.notice-card p {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}
.notice-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-600);
  display: flex; align-items: center; gap: 5px;
  margin-top: auto;
}
.notice-card:hover .notice-read { color: var(--gold-600); }
.notice-card.pinned { border-left: 3px solid var(--gold-500); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .login-card { order: -1; }
  .notice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .notice-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .login-card { padding: 28px 22px; }
}
