/* =============================================
   GOALS Staff Portal — admin.css
   Hidden, non-indexed. Internal use only.
   ============================================= */

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

:root {
  --black:    #000;
  --dark:     #0a0a0a;
  --dark-2:   #111;
  --dark-3:   #1a1a1a;
  --gray-1:   #222;
  --gray-3:   #555;
  --gray-4:   #888;
  --gray-5:   #aaa;
  --white:    #fff;
  --green:    #22c55e;
  --green-lt: #86efac;
  --red:      #ef4444;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-d:   'Space Grotesk', var(--font);
}

html { font-size: 16px; scroll-behavior: smooth; }

.admin-body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 20px 80px;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   LOGIN CARD
   ============================ */
.admin-login-wrap {
  width: 100%;
  max-width: 480px;
}

.admin-login-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  margin-bottom: 40px;
}

/* Branding */
.admin-brand { text-align: center; margin-bottom: 32px; }
.admin-logo {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.admin-brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
}

/* Lock icon */
.admin-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(34,197,94,0.08);
  border-radius: 50%;
  border: 1px solid rgba(34,197,94,0.2);
  margin: 0 auto 24px;
  color: var(--green);
}

.admin-title {
  font-family: var(--font-d);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.admin-subtitle {
  font-size: 0.86rem;
  color: var(--gray-4);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ============================
   FORM
   ============================ */
.admin-form { display: flex; flex-direction: column; gap: 0; }

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.admin-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-5);
}
.admin-form-group input {
  background: var(--dark-3);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font);
  width: 100%;
  transition: border-color 0.2s;
}
.admin-form-group input:focus {
  border-color: var(--green);
  outline: none;
}
.admin-form-group input.error { border-color: var(--red); }
.admin-form-group input::placeholder { color: var(--gray-3); }

/* Password field */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap input { padding-right: 48px; }
.toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--gray-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s;
}
.toggle-pw:hover { color: var(--white); }

/* Field errors */
.field-error {
  font-size: 0.76rem;
  color: var(--red);
  min-height: 16px;
  line-height: 1;
}

/* Form options row */
.admin-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-5);
  cursor: pointer;
}
.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}
.forgot-link {
  font-size: 0.82rem;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--green-lt); }

/* Status message */
.admin-status {
  font-size: 0.84rem;
  min-height: 20px;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.5;
}
.admin-status.error   { color: var(--red); }
.admin-status.success { color: var(--green); }
.admin-status.info    { color: var(--gray-5); }

/* Rate limit bar */
.rate-limit-bar {
  height: 3px;
  background: var(--dark-3);
  border-radius: 3px;
  margin-bottom: 14px;
  overflow: hidden;
}
.rate-limit-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Submit button */
.admin-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--green);
  color: var(--black);
  border: none;
  padding: 15px 24px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  margin-top: 4px;
}
.admin-submit-btn:hover:not(:disabled) {
  background: var(--green-lt);
  transform: translateY(-1px);
}
.admin-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Security note */
.admin-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.74rem;
  color: var(--gray-4);
}
.admin-security-note svg { flex-shrink: 0; color: var(--green); }

/* ============================
   DEV TEAM NOTES
   ============================ */
.admin-dev-note {
  background: var(--dark-2);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.admin-dev-note > h2 {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dev-note-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dev-note-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 10px;
}
.dev-note-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dev-note-block li {
  font-size: 0.82rem;
  color: var(--gray-4);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}
.dev-note-block li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gray-3);
}
.dev-note-block li strong { color: var(--white); }
code {
  font-family: 'Courier New', monospace;
  font-size: 0.8em;
  color: var(--green);
  background: rgba(34,197,94,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  .admin-login-card { padding: 36px 24px; }
  .dev-note-grid { grid-template-columns: 1fr; }
  .admin-dev-note { padding: 28px 24px; }
  .admin-form-options { flex-direction: column; align-items: flex-start; }
}
