/* =========================================================
   School ERP — Campus Gate Login
   Admin + User + Forgot password screens
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --ss-login-ink: #10233a;
  --ss-login-coral: #ff5a3d;
  --ss-login-sage: #3d8b7a;
  --ss-login-gold: #e8a317;
  --ss-login-paper: #f4f9f6;
  --ss-login-line: rgba(16, 35, 58, 0.1);
  --ss-font-display: "Fraunces", Georgia, serif;
  --ss-font-ui: "Outfit", "Segoe UI", sans-serif;
}

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

html, body {
  height: 100%;
  margin: 0;
  font-family: var(--ss-font-ui);
  color: var(--ss-login-ink);
  background: var(--ss-login-paper);
}

body.ss-login-body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Full-bleed stage */
.ss-login-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 32px;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(255, 90, 61, 0.18), transparent 55%),
    radial-gradient(720px 480px at 92% 8%, rgba(61, 139, 122, 0.22), transparent 50%),
    radial-gradient(640px 420px at 50% 110%, rgba(232, 163, 23, 0.12), transparent 55%),
    linear-gradient(165deg, #eaf6f1 0%, #f5faf7 42%, #eef3f8 100%);
  overflow: hidden;
}

.ss-login-shell::before,
.ss-login-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ss-login-shell::before {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  left: -8%;
  bottom: -12%;
  border: 1px solid rgba(61, 139, 122, 0.18);
  background: rgba(61, 139, 122, 0.06);
  animation: ssLoginFloat 10s ease-in-out infinite;
}

.ss-login-shell::after {
  width: min(40vw, 280px);
  height: min(40vw, 280px);
  right: -4%;
  top: 8%;
  border: 1px solid rgba(255, 90, 61, 0.16);
  background: rgba(255, 90, 61, 0.05);
  animation: ssLoginFloat 12s ease-in-out infinite reverse;
}

.ss-login-brand,
.ss-login-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

/* Brand hero — school identity first */
.ss-login-brand {
  text-align: center;
  margin-bottom: 28px;
  animation: ssLoginRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ss-login-brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ss-login-brand-logo {
  margin-bottom: 18px;
}

.ss-login-brand-logo img {
  max-height: 72px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(16, 35, 58, 0.12));
  animation: ssLoginLogo 4.5s ease-in-out infinite;
}

.ss-login-brand h1 {
  margin: 0 0 10px;
  font-family: var(--ss-font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ss-login-ink);
}

.ss-login-brand p {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
  color: #5b6b7c;
}

.ss-login-eyebrow,
.ss-login-points,
.ss-login-brand-foot {
  display: none;
}

/* Form panel — interaction surface */
.ss-login-panel {
  animation: ssLoginRise 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ss-login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 35, 58, 0.08);
  border-radius: 28px;
  box-shadow:
    0 4px 8px rgba(16, 35, 58, 0.03),
    0 28px 64px rgba(16, 35, 58, 0.1);
  padding: 32px 30px 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ss-login-logo {
  display: none;
}

.ss-login-card h2 {
  margin: 0 0 6px;
  font-family: var(--ss-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ss-login-ink);
  text-align: center;
}

.ss-login-card .ss-login-sub {
  margin: 0 0 24px;
  text-align: center;
  color: #5b6b7c;
  font-size: 13.5px;
}

.ss-login-card .form-group {
  margin-bottom: 14px;
  position: relative;
}

.ss-login-card .form-control,
.ss-login-card input.form-control,
.ss-login-card .form-username,
.ss-login-card .form-password,
.ss-login-card select.form-control {
  height: 52px !important;
  border-radius: 16px !important;
  border: 1px solid var(--ss-login-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 12px 46px 12px 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--ss-login-ink) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ss-login-card .form-control:focus {
  border-color: rgba(255, 90, 61, 0.5) !important;
  box-shadow: 0 0 0 4px rgba(255, 90, 61, 0.12) !important;
  transform: translateY(-1px);
}

.ss-login-card .form-control-feedback {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: var(--ss-login-sage) !important;
  pointer-events: none;
  font-size: 15px;
}

.ss-login-card .has-feedback .form-control-feedback {
  top: 16px;
  right: 16px;
}

.ss-login-card .btn,
.ss-login-card button.btn,
.ss-login-card button[type="submit"] {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--ss-login-coral), #ff7a45) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 32px rgba(255, 90, 61, 0.34) !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.ss-login-card .btn:hover,
.ss-login-card button.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(255, 90, 61, 0.4) !important;
}

.ss-login-card .btn:active {
  transform: translateY(0);
}

.ss-login-card .forgot,
.ss-login-card a.forgot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--ss-login-sage) !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.ss-login-card .forgot:hover {
  color: var(--ss-login-coral) !important;
}

.ss-login-card .alert {
  border: 0 !important;
  border-radius: 14px !important;
  padding: 11px 13px !important;
  margin-bottom: 14px;
  font-size: 13px;
}

.ss-login-card .alert-danger {
  background: rgba(255, 90, 61, 0.1) !important;
  color: #9f1239 !important;
  border-left: 3px solid var(--ss-login-coral) !important;
}

.ss-login-card .alert-success {
  background: rgba(61, 139, 122, 0.12) !important;
  color: #14532d !important;
  border-left: 3px solid var(--ss-login-sage) !important;
}

.ss-login-card .text-danger {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.ss-login-card .catpcha {
  cursor: pointer;
  margin-left: 8px;
  color: var(--ss-login-coral);
}

.ss-login-card .radio-inline {
  margin-right: 16px;
  font-weight: 600;
  color: #3d4f63;
  font-size: 14px;
}

.ss-login-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: #5b6b7c;
}

.ss-login-switch a {
  color: var(--ss-login-coral);
  font-weight: 700;
  text-decoration: none;
}

.ss-login-switch a:hover {
  text-decoration: underline;
}

.ss-login-notices {
  margin-top: 18px;
  max-height: 160px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(61, 139, 122, 0.06);
  border: 1px solid rgba(61, 139, 122, 0.12);
}

.ss-login-notices h4 {
  margin: 0 0 4px;
  font-family: var(--ss-font-display);
  font-size: 14px;
  color: var(--ss-login-ink);
}

.ss-login-notices p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #5b6b7c;
}

.ss-login-notices .more {
  color: var(--ss-login-coral);
  font-weight: 600;
}

.ss-login-powered {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #8a97a6;
}

.ss-login-powered b {
  color: var(--ss-login-ink);
}

/* Kill old template leftovers */
.ss-login-body .top-content,
.ss-login-body .inner-bg,
.ss-login-body .bgoffsetbg,
.ss-login-body .container-fluid,
.ss-login-body .row {
  all: unset;
}

.ss-login-body .top-content,
.ss-login-body .inner-bg {
  display: block;
  min-height: 100vh;
}

@keyframes ssLoginFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.03); }
}

@keyframes ssLoginRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ssLoginLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 575px) {
  .ss-login-shell {
    padding: 28px 14px 24px;
    justify-content: flex-start;
  }

  .ss-login-brand {
    margin-bottom: 20px;
    margin-top: 12px;
  }

  .ss-login-brand-logo img {
    max-height: 58px;
  }

  .ss-login-card {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }

  .ss-login-card h2 {
    font-size: 22px;
  }
}
