/* ---- the two sign-in doors, in frosted glass --------------------------
   The student's door (portal/login.php) and the office's (admin/login.php).
   A slow wash of the College's colours behind, and the card in front of it
   made of frosted glass: blurred and lightened, a bright hairline at the top
   edge where light would catch it. Only these two pages carry body.glass, so
   nothing else moves.

   Where a browser cannot blur what is behind (old Android, Firefox before
   103) the card is simply a darker solid instead: the text stays readable,
   which is the only thing a sign-in page must never get wrong. */
body.glass{min-height:100vh;margin:0;color:#fff;background:#160d09;position:relative;overflow-x:hidden;
  -webkit-font-smoothing:antialiased}
body.glass::before{content:"";position:fixed;inset:-25%;z-index:-2;
  background:
    radial-gradient(circle at 22% 28%, #e0673f 0, rgba(224,103,63,0) 34%),
    radial-gradient(circle at 78% 18%, #7c3aed 0, rgba(124,58,237,0) 32%),
    radial-gradient(circle at 72% 78%, #f59e0b 0, rgba(245,158,11,0) 34%),
    radial-gradient(circle at 18% 82%, #db2777 0, rgba(219,39,119,0) 32%),
    radial-gradient(circle at 50% 50%, #a04022 0, rgba(160,64,34,0) 45%);
  filter:blur(46px) saturate(130%);animation:glassdrift 26s ease-in-out infinite alternate}
body.glass::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.10), rgba(0,0,0,0) 60%),
             linear-gradient(180deg, rgba(10,6,4,.10), rgba(10,6,4,.45))}
@keyframes glassdrift{
  0%  {transform:translate3d(0,0,0) rotate(0deg) scale(1)}
  50% {transform:translate3d(3%,-2%,0) rotate(8deg) scale(1.06)}
  100%{transform:translate3d(-4%,3%,0) rotate(-6deg) scale(1.1)}}
@media (prefers-reduced-motion: reduce){body.glass::before{animation:none}}

/* the pane itself */
body.glass .pcard,
body.glass .door .box{position:relative;overflow:hidden;border-radius:28px;
  background:linear-gradient(140deg, rgba(255,255,255,.24), rgba(255,255,255,.07) 55%, rgba(255,255,255,.12));
  -webkit-backdrop-filter:blur(26px) saturate(180%);backdrop-filter:blur(26px) saturate(180%);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 30px 70px -24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.55),
             inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 0 .5px rgba(255,255,255,.12)}
body.glass .pcard::before,
body.glass .door .box::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:radial-gradient(120% 60% at 10% -10%, rgba(255,255,255,.35), rgba(255,255,255,0) 55%)}
body.glass .pcard > *, body.glass .door .box > *{position:relative}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  body.glass .pcard, body.glass .door .box{background:rgba(38,24,18,.9)}
}

/* writing on glass */
body.glass h1, body.glass .phead h1, body.glass .door h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
body.glass .phead p, body.glass .door .sub{color:rgba(255,255,255,.72)}
body.glass .pcard h2{color:#ffd9c9;letter-spacing:.16em}
body.glass .plab, body.glass .door label{color:rgba(255,255,255,.88)}
body.glass .pnote, body.glass .door .box p{color:rgba(255,255,255,.66) !important}
body.glass a{color:#ffd9c9}
body.glass .pnote b{color:#fff}
body.glass .crest, body.glass .phead img{filter:drop-shadow(0 6px 16px rgba(0,0,0,.35))}

/* fields: a clear pill sunk into the glass */
body.glass .big, body.glass .door input{background:rgba(255,255,255,.12) !important;color:#fff !important;
  border:1px solid rgba(255,255,255,.30) !important;border-radius:16px !important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.18) !important;color-scheme:dark;caret-color:#ffd9c9}
body.glass .big::placeholder, body.glass .door input::placeholder{color:rgba(255,255,255,.5)}
body.glass .big:focus, body.glass .door input:focus{outline:0;border-color:rgba(255,255,255,.7) !important;
  background:rgba(255,255,255,.18) !important;box-shadow:0 0 0 4px rgba(255,255,255,.12) !important}

/* the button: a lit, rounded lozenge */
body.glass .pbtn, body.glass .door button{border:0;border-radius:999px !important;color:#fff;cursor:pointer;
  background:linear-gradient(180deg, #e2774c 0%, #b94b27 55%, #a04022 100%) !important;
  box-shadow:0 14px 30px -10px rgba(224,103,63,.75), inset 0 1px 0 rgba(255,255,255,.45),
             inset 0 -2px 6px rgba(0,0,0,.18);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s}
body.glass .pbtn:hover, body.glass .door button:hover{filter:brightness(1.07);transform:translateY(-1px)}
body.glass .pbtn:active, body.glass .door button:active{transform:translateY(1px) scale(.99)}

/* choosing one of several children */
body.glass .pick{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.24);border-radius:18px;color:#fff}
body.glass .pick:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5)}
body.glass .pick span{color:rgba(255,255,255,.7)}

/* messages */
body.glass .pflash, body.glass .door .err{border:1px solid rgba(255,255,255,.25);border-left-width:1px;
  border-radius:16px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
body.glass .pflash{background:rgba(16,185,129,.22);color:#eafff6}
body.glass .pflash.err, body.glass .door .err{background:rgba(220,38,38,.25);color:#fff1f1}

/* the office door's other ways in, as smaller panes */
body.glass .door .others .t{color:rgba(255,255,255,.6)}
body.glass .door .others a{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);border-radius:18px;
  color:#fff;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
body.glass .door .others a:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4)}
body.glass .door .others a span{color:rgba(255,255,255,.65)}
body.glass .door .back{color:rgba(255,255,255,.6)}
