/* Sign-in page. Loaded only while nobody is signed in.
   Same navy / teal as the rest of the portal, one typeface, gentle motion. */

.sg{
  --n1:#0e1b3f; --n2:#1b3b6f; --t1:#065a82; --t2:#1c7293; --cy:#0cb0ef;
  position:relative;min-height:100vh;min-height:100dvh;overflow:hidden;isolation:isolate;
  display:grid;place-items:center;padding:40px 24px;
  background:linear-gradient(135deg,var(--n1) 0%,var(--n2) 48%,var(--t1) 100%);
  color:#fff;font-family:var(--sans);
}

/* ---- background: drifting light + a faint grid ---- */
.sg-bg{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.sg-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;will-change:transform}
.sg-blob.b1{width:520px;height:520px;left:-140px;top:-160px;background:radial-gradient(circle,rgba(12,176,239,.55),rgba(12,176,239,0) 70%);animation:sg-drift1 22s ease-in-out infinite alternate}
.sg-blob.b2{width:620px;height:620px;right:-200px;bottom:-240px;background:radial-gradient(circle,rgba(46,127,184,.6),rgba(46,127,184,0) 70%);animation:sg-drift2 26s ease-in-out infinite alternate}
.sg-blob.b3{width:360px;height:360px;left:38%;top:52%;background:radial-gradient(circle,rgba(10,124,4,.28),rgba(10,124,4,0) 70%);animation:sg-drift3 30s ease-in-out infinite alternate}
.sg-grid{
  position:absolute;inset:0;opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse at 50% 45%,#000 0%,transparent 72%);
          mask-image:radial-gradient(ellipse at 50% 45%,#000 0%,transparent 72%);
}
@keyframes sg-drift1{to{transform:translate(120px,90px) scale(1.15)}}
@keyframes sg-drift2{to{transform:translate(-140px,-80px) scale(1.1)}}
@keyframes sg-drift3{to{transform:translate(-90px,-60px) scale(1.25)}}

/* ---- layout ---- */
.sg-shell{
  width:100%;max-width:1140px;display:grid;
  grid-template-columns:minmax(0,480px) minmax(0,1fr);gap:64px;align-items:center;
}

/* ---- the sign-in card ---- */
.sg-card{
  position:relative;background:#fff;color:#141d38;border-radius:30px;padding:44px 42px 36px;
  box-shadow:0 30px 80px rgba(6,14,38,.45),0 2px 0 rgba(255,255,255,.4) inset;
  animation:sg-rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.sg-crest{
  position:relative;width:104px;height:104px;margin:0 0 26px;display:grid;place-items:center;
  animation:sg-pop .9s .15s cubic-bezier(.2,1.2,.3,1) both;
}
.sg-crest::before,.sg-crest::after{
  content:'';position:absolute;inset:-10px;border-radius:50%;
  border:2px solid rgba(12,176,239,.35);animation:sg-ring 3.2s ease-out infinite;
}
.sg-crest::after{animation-delay:1.6s}
.sg-crest img{position:relative;width:100%;height:100%;object-fit:contain;display:block}

.sg-dv{text-align:left;font-size:22px;line-height:1.9;color:#1b3b6f;margin-bottom:2px;animation:sg-up .7s .25s both}
.sg-school{font-size:15px;font-weight:700;letter-spacing:-.005em;color:#141d38;animation:sg-up .7s .3s both}
.sg-ministry{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#6b7a94;margin-top:5px;animation:sg-up .7s .35s both}
.sg-rule{height:1px;background:#e4e9f2;margin:26px 0 24px;transform-origin:left;animation:sg-line .9s .4s both}

.sg-title{font-size:32px;font-weight:700;letter-spacing:-.03em;line-height:1.15;animation:sg-up .7s .45s both}
.sg-sub{font-size:15px;line-height:1.65;color:#5b6b87;margin-top:10px;animation:sg-up .7s .5s both}

.sg-btn{
  position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:14px;
  width:100%;height:56px;margin-top:28px;border-radius:16px;
  background:linear-gradient(135deg,var(--n2),var(--t1));color:#fff;text-decoration:none;
  font-size:15.5px;font-weight:600;letter-spacing:.005em;
  box-shadow:0 14px 30px rgba(27,59,111,.34);
  transition:transform .2s ease,box-shadow .2s ease;
  animation:sg-up .7s .55s both;
}
.sg-btn::after{
  content:'';position:absolute;top:0;bottom:0;width:60px;left:-90px;transform:skewX(-20deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
  animation:sg-shine 4.5s 1.6s ease-in-out infinite;
}
.sg-btn:hover{transform:translateY(-2px);box-shadow:0 20px 38px rgba(27,59,111,.42)}
.sg-btn:active{transform:translateY(0)}
.sg-btn:focus-visible{outline:3px solid rgba(12,176,239,.55);outline-offset:3px}
.sg-g{width:30px;height:30px;flex:none;border-radius:50%;background:#fff;display:grid;place-items:center}
.sg-arrow{width:18px;height:18px;flex:none;transition:transform .2s ease}
.sg-btn:hover .sg-arrow{transform:translateX(4px)}

.sg-note{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:13px;color:#5b6b87;animation:sg-up .7s .6s both}
.sg-note svg{color:#1c7293}
.sg-note b{color:#141d38;font-weight:600}

.sg-foot{
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
  margin-top:28px;padding-top:18px;border-top:1px solid #e4e9f2;font-size:12px;color:#7a88a3;
  animation:sg-up .7s .65s both;
}

/* ---- the showcase on the right ---- */
.sg-stage{position:relative;display:grid;gap:18px;justify-items:start;max-width:520px}
.sg-lead{animation:sg-up .8s .3s both}
.sg-lead h2{font-size:30px;font-weight:700;letter-spacing:-.03em;line-height:1.2}
.sg-lead p{font-size:15.5px;line-height:1.65;color:rgba(255,255,255,.78);margin-top:10px;max-width:440px}

.sg-tile{
  display:flex;align-items:center;gap:16px;width:100%;padding:16px 18px;border-radius:20px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 14px 34px rgba(6,14,38,.22);
  animation:sg-up .8s both,sg-float 6s ease-in-out infinite;
}
.sg-tile.t1{animation-delay:.5s,1.3s}
.sg-tile.t2{animation-delay:.65s,2.1s;margin-left:34px;width:calc(100% - 34px)}
.sg-tile.t3{animation-delay:.8s,2.9s}
.sg-ico{width:48px;height:48px;border-radius:15px;flex:none;display:grid;place-items:center;background:rgba(255,255,255,.16);color:#fff}
.sg-tt{min-width:0;flex:1}
.sg-tt b{display:block;font-size:15px;font-weight:600}
.sg-tt span{display:block;font-size:13px;color:rgba(255,255,255,.72);margin-top:2px}

/* tiny animated visuals inside the tiles */
.sg-bars{display:flex;align-items:flex-end;gap:4px;height:30px;flex:none}
.sg-bars i{width:6px;border-radius:3px;background:#7fd6f7;transform-origin:bottom;animation:sg-bar 2.4s ease-in-out infinite}
.sg-bars i:nth-child(1){height:45%;animation-delay:0s}
.sg-bars i:nth-child(2){height:70%;animation-delay:.15s}
.sg-bars i:nth-child(3){height:55%;animation-delay:.3s}
.sg-bars i:nth-child(4){height:90%;animation-delay:.45s}
.sg-bars i:nth-child(5){height:75%;animation-delay:.6s}
.sg-steps{display:flex;align-items:center;gap:0;flex:none}
.sg-steps i{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.3);animation:sg-step 4.2s infinite}
.sg-steps u{width:14px;height:2px;background:rgba(255,255,255,.28);display:block}
.sg-steps i:nth-of-type(1){animation-delay:0s}
.sg-steps i:nth-of-type(2){animation-delay:.7s}
.sg-steps i:nth-of-type(3){animation-delay:1.4s}
.sg-steps i:nth-of-type(4){animation-delay:2.1s}

@keyframes sg-rise{from{opacity:0;transform:translateY(28px) scale(.98)}to{opacity:1;transform:none}}
@keyframes sg-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes sg-pop{from{opacity:0;transform:scale(.4) rotate(-12deg)}to{opacity:1;transform:none}}
@keyframes sg-line{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes sg-ring{0%{transform:scale(.86);opacity:.9}100%{transform:scale(1.4);opacity:0}}
@keyframes sg-shine{0%,70%{left:-90px}100%{left:130%}}
@keyframes sg-float{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes sg-bar{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.55)}}
@keyframes sg-step{0%,15%{background:rgba(255,255,255,.3);box-shadow:none}30%,100%{background:#7fe3a1;box-shadow:0 0 0 4px rgba(127,227,161,.25)}}

/* ---- tablet and phone ---- */
@media (max-width:980px){
  .sg{padding:28px 18px}
  .sg-shell{grid-template-columns:minmax(0,1fr);gap:28px;max-width:520px}
  .sg-stage{max-width:none}
  .sg-lead h2{font-size:24px}
  .sg-tile.t2{margin-left:0;width:100%}
}
@media (max-width:520px){
  .sg{padding:18px 14px;place-items:start center}
  .sg-card{padding:32px 24px 26px;border-radius:26px}
  .sg-crest{width:88px;height:88px;margin-bottom:20px}
  .sg-title{font-size:27px}
  .sg-stage{display:none}
}
@media (prefers-reduced-motion:reduce){
  .sg *,.sg *::before,.sg *::after{animation:none !important;transition:none !important}
}
