/* ================================================
   ECGP HR Manager — Global Styles (Login & Public)
   Brand: #003865 (navy), #78BE21 (green)
   ================================================ */

:root {
  --ecgp-navy: #003865;
  --ecgp-navy-dark: #002a4e;
  --ecgp-navy-light: #1a5276;
  --ecgp-green: #78BE21;
  --ecgp-green-dark: #5fa318;
  --ecgp-green-light: #8dd435;
  --bg-body: #f0f2f5;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6c757d;
  --border-light: #e8ecf1;
  --shadow-sm: 0 1px 3px rgba(0, 56, 101, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 56, 101, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 56, 101, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  background: var(--bg-body);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  flex: 1 0 auto;
}

/* ---- Login Page ---- */
.logo-top {
  display: block;
  margin: 50px auto 10px;
  max-width: 200px;
  height: auto;
}

.auth-form {
  max-width: 420px;
  margin: 30px auto 60px;
  background: var(--bg-card);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--ecgp-green);
}

.form-title {
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--ecgp-navy);
  font-size: 1.3rem;
  text-align: center;
}

.honeypot { display: none; }

.auth-form .form-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.auth-form .form-control {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form .form-control:focus {
  border-color: var(--ecgp-green);
  box-shadow: 0 0 0 3px rgba(120, 190, 33, 0.15);
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--ecgp-green) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ecgp-green-dark) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(120, 190, 33, 0.35);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition);
}

/* ---- Footer ---- */
footer {
  flex-shrink: 0;
  background: var(--ecgp-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 16px 0;
  text-align: center;
  font-size: 0.85rem;
  border-top: 3px solid var(--ecgp-green);
}

footer a {
  color: var(--ecgp-green-light);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: var(--ecgp-green);
  text-decoration: underline;
}

/* ---- Alert Styling ---- */
.alert {
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
}

.alert-success {
  background: #edf7e1;
  color: #2d6a0e;
  border-left: 4px solid var(--ecgp-green);
}

.alert-danger {
  background: #fef0f0;
  color: #c0392b;
  border-left: 4px solid #e74c3c;
}

/* ---- Link Button ---- */
.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--ecgp-navy);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.link-button:hover {
  text-decoration: underline;
  color: var(--ecgp-green);
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.9rem;
}

/* ---- Microsoft SSO Button ---- */
.btn-microsoft {
  background: #2f2f2f;
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-microsoft:hover {
  background: #1a1a1a;
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-microsoft svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-toggle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-block;
  margin-top: 16px;
}

.admin-toggle:hover {
  color: var(--ecgp-navy);
}
