/* Sign-in page: a themed gradient backdrop, the slides on the left and a floating sign-in card on the right (stacked on small screens).
   Colours are fixed to the website palette (--lg-*) so the page matches the school website in every theme. */
.login-page {
    /* the Talent Era website palette (web/css/site.css): navy, sky blue, amber; --lg-red / --lg-yellow keep their names but hold blue / amber */
    --lg-navy: #17487f; --lg-deep: #0b2a4e; --lg-red: #1f9bd7; --lg-yellow: #f39c1f;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh; display: flex; flex-direction: column;
    background: linear-gradient(135deg, var(--lg-deep) 0%, var(--lg-navy) 50%, var(--lg-red) 130%);
    background-attachment: fixed;
}
[hidden] { display: none !important; }

/* brand bar */
.login-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 28px;
    background: #ffffffcf;
    background-image: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
    border-bottom: 3px solid var(--lg-yellow);
}
.login-brand-logo { height: 76px; width: auto; max-width: none; flex: none; }
.login-brand-text { flex: 1; text-align: center; }
.login-brand-text h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .3px; }
.login-brand-text .login-slogan { margin: 4px 0 0; font-size: 14px; font-style: italic; }

/* body */
.login-main { flex: 1; display: flex;  gap: 40px; padding: 32px 40px; max-width: 1500px; width: 100%; margin: 0 auto; }
.login-slides { flex: 1; min-width: 0; }
.login-slides .carousel-inner { border-radius: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); border: 4px solid rgba(255, 255, 255, .85); }
.login-slides .carousel-inner img { width: 100%; height: min(62vh, 580px); object-fit: cover; }
.login-slides .carousel-caption { left: 0; right: 0; bottom: 0; padding: 40px 24px 28px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-shadow: none; }
.login-slides .carousel-caption h5 { font-size: 20px; font-weight: 700; color: #fff; }
.login-slides .carousel-control { background: none; width: 8%; }

/* card */
.login-card {
    width: 400px; flex: none; padding: 34px 34px 18px; border-radius: 18px;
    background: rgba(255, 255, 255, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    border-top: 5px solid var(--lg-yellow);
    animation: loginRise .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes loginRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .login-card { animation: none; } }

.login-avatar { width: 68px; height: 68px; margin: -64px auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--lg-navy), var(--lg-red)); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); border: 4px solid #fff; }
.login-heading { margin: 0 0 20px; text-align: center; font-size: 26px; font-weight: 800; }
.login-heading small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #6b7280; }

.login-card .input-group { margin-bottom: 14px; }
.login-card .input-group-addon { background: #f3f4f8; border-color: #dfe3ec; color: var(--lg-navy); min-width: 44px; }
.login-card .form-control { height: 46px; border-color: #dfe3ec; box-shadow: none; }
.login-card .form-control:focus { border-color: var(--lg-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lg-red) 18%, transparent); }
.login-card .btn-default { height: 46px; border-color: #dfe3ec; color: #6b7280; }
.login-card .btn-primary {
    height: 48px; margin-top: 6px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .4px;
    background: linear-gradient(135deg, var(--lg-red), var(--lg-navy));
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .15s, filter .15s;
}
.login-card .btn-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 12px 24px rgba(0, 0, 0, .3); }
.login-card .btn-primary:disabled { opacity: .75; }
.login-card .alert { border-radius: 10px; }
.login-back { text-align: center; margin: 16px 0 0; }
.login-back a { font-weight: 600; }
.login-sent { text-align: center; }
.login-sent .fa-envelope-open-o { font-size: 40px; color: var(--lg-red); }
#capsWarn { display: block; margin: -6px 0 8px; }

.login-footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid #eceff3; text-align: center; font-size: 12px; color: #6b7280; }
.login-footer p { margin: 6px 0 0; }
.login-address { font-size: 10px; color: #8a8777; }

/* dark theme */
body[data-mode="dark"].login-page .login-bar { background: rgba(10, 14, 20, .95); }
body[data-mode="dark"].login-page .login-card { background: rgba(21, 27, 36, .97); }
body[data-mode="dark"].login-page .login-card .input-group-addon { background: #1d2530; border-color: #2a3340; color: #9db7d1; }
body[data-mode="dark"].login-page .login-card .form-control { background: #10151d; border-color: #2a3340; color: #e6edf3; }
body[data-mode="dark"].login-page .login-card .btn-default { background: #10151d; border-color: #2a3340; color: #9db7d1; }
body[data-mode="dark"].login-page .login-footer { border-top-color: #2a3340; }
body[data-mode="dark"].login-page .login-avatar { border-color: #151b24; }

@media (max-width: 991px) {
    .login-bar { flex-direction: column; gap: 6px; padding: 10px 12px; }
    .login-brand-text h3 { font-size: 18px; }
    .login-brand-text .login-slogan { font-size: 12px; }
    .login-main { flex-direction: column-reverse; align-items: stretch; gap: 24px; padding: 18px 14px 28px; }
    .login-card { width: auto; margin-top: 34px; }
    .login-slides .carousel-inner img { height: 34vh; }
}

.login-page .login-brand-text h3, .login-page .login-heading { color: var(--lg-navy); }
.login-page .login-brand-text .login-slogan { color: var(--lg-navy); }
.login-page .login-slides .carousel-caption h5 { color: #fff; }
.login-page .login-card .form-control, .login-page .login-card .btn { font-family: inherit; }
.login-page .login-back a, .login-page .login-sent a { color: var(--lg-navy); }
body[data-mode="dark"].login-page .login-back a, body[data-mode="dark"].login-page .login-sent a { color: #7cc4ee; }

/* ---- website look and motion (web/css/site.css hero) ---- */
.login-page {
    position: relative; overflow-x: hidden; isolation: isolate;
    background:
        radial-gradient(700px 420px at 90% 0%, rgba(31, 155, 215, .55), transparent 65%),
        radial-gradient(520px 360px at 0% 100%, rgba(243, 156, 31, .22), transparent 70%),
        linear-gradient(160deg, var(--lg-deep) 0%, var(--lg-navy) 62%, #1b5c9a 100%);
    background-attachment: fixed;
}
.login-page::before {
    content: ""; position: fixed; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 84 146'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.5'%3E%3Cpath d='M42 2l38 22v44L42 90 4 68V24z'/%3E%3Cpath d='M42 90v44M4 68l-38 22M80 68l38 22'/%3E%3C/g%3E%3C/svg%3E");
}
.login-blob { position: fixed; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; animation: loginFloat 14s ease-in-out infinite; }
.login-blob--1 { width: 340px; height: 340px; top: -90px; right: 8%; background: #1f9bd7; }
.login-blob--2 { width: 260px; height: 260px; bottom: 40px; left: -60px; background: #f39c1f; opacity: .28; animation-delay: -6s; }
@keyframes loginFloat { 50% { transform: translate3d(0, 28px, 0) scale(1.08); } }
.login-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, .16), transparent 60%); }
.login-hex { position: fixed; z-index: -1; width: 60px; height: 69px; pointer-events: none; opacity: .5; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .25s ease-out; }
.login-hex::before { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .05)); animation: loginHex 9s ease-in-out infinite; }
.login-hex--1 { top: 14%; left: 44%; width: 50px; height: 58px; }
.login-hex--2 { top: 70%; left: 46%; width: 90px; height: 104px; opacity: .25; }
.login-hex--3 { top: 40%; right: 3%; width: 34px; height: 40px; opacity: .8; }
.login-hex--4 { bottom: 10%; right: 8%; width: 64px; height: 74px; }
.login-hex--1::before, .login-hex--4::before { background: linear-gradient(135deg, #ffb83d, #f39c1f); animation-duration: 7s; }
.login-hex--2::before { animation-duration: 12s; animation-delay: -5s; }
@keyframes loginHex { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(14deg); } }

/* header like the website's: white bar, brand blue edge */
.login-bar { border-bottom: 3px solid var(--lg-yellow); animation: loginDown .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes loginDown { from { opacity: 0; transform: translateY(-20px); } }
.login-word { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(3deg); animation: loginWord .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 90ms + .3s); }
@keyframes loginWord { to { opacity: 1; transform: none; } }
.login-brand-text .login-slogan { font-family: inherit; animation: loginFade .9s ease .8s both; }
@keyframes loginFade { from { opacity: 0; transform: translateY(18px); } }

/* hero text on the left (as on the website) */
.login-main { align-items: center; }
.login-hero { flex: 1; min-width: 0; padding: 0 24px; color: #fff; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #ffd08a; animation: loginFade .9s ease both; }
.login-eyebrow::before { content: ""; width: 14px; height: 16px; background: var(--lg-yellow); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.login-page .login-hero-title { margin: .35em 0 .45em; font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.login-accent, .login-accent .login-word { background: linear-gradient(90deg, #ffb83d, #f39c1f, #ffd08a, #f39c1f); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: loginGrad 6s ease-in-out infinite alternate; }
.login-accent .login-word { animation: loginWord .8s cubic-bezier(.2, .8, .2, 1) forwards, loginGrad 6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 90ms + .3s), 0s; }
@keyframes loginGrad { to { background-position: 100% 0; } }
.login-lead { max-width: 520px; font-size: 1.1rem; line-height: 1.75; color: #d3e6f6; animation: loginFade .9s ease .7s both; }
.login-ticker { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 1.9rem; padding: .55rem 1.1rem; min-height: 3rem; font-size: 1.3rem; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; backdrop-filter: blur(8px); animation: loginFade .9s ease .85s both; }
.login-ticker-label { color: #b8d4ec; font-weight: 500; font-size: .9rem; }
.login-ticker-word { color: #fff; min-width: 1ch; }
.login-ticker-word::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -.15em; background: var(--lg-yellow); animation: loginBlink 1s steps(2, start) infinite; }
@keyframes loginBlink { to { visibility: hidden; } }
.login-cta { display: flex; flex-wrap: wrap; gap: 14px; animation: loginFade .9s ease 1s both; }
.login-btn { position: relative; overflow: hidden; display: inline-block; padding: .8rem 1.6rem; border: 2px solid transparent; border-radius: 999px; font-weight: 600; transition: transform .2s; }
.login-btn:hover { transform: translateY(-2px); text-decoration: none; }
.login-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); pointer-events: none; }
.login-btn:hover::after { left: 130%; transition: left .7s ease; }
.login-btn-gold { background: linear-gradient(135deg, #ffb83d, #f39c1f); color: #0b2a4e; box-shadow: 0 8px 20px rgba(243, 156, 31, .4); animation: loginGoldGlow 3s ease-in-out infinite; }
.login-btn-gold:hover { color: #0b2a4e; }
.login-btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.login-btn-ghost:hover { background: #fff; color: var(--lg-navy); }
@keyframes loginGoldGlow { 50% { box-shadow: 0 8px 30px rgba(243, 156, 31, .75), 0 0 0 8px rgba(243, 156, 31, .12); } }
@media (max-width: 991px) { .login-hero { padding: 0 6px; } .login-main { align-items: stretch; } }

.login-card { animation-delay: .25s; }
.login-card .login-avatar { background: var(--lg-red); animation: loginIcon 3s ease-in-out infinite; }
@keyframes loginIcon { 50% { transform: scale(1.08) rotate(4deg); } }

/* button: shine sweep + glow pulse */
.login-card .btn-primary { position: relative; overflow: hidden; animation: loginGlow 3s ease-in-out infinite; }
.login-card .btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); pointer-events: none; }
.login-card .btn-primary:hover::after { left: 130%; transition: left .7s ease; }
@keyframes loginGlow { 50% { box-shadow: 0 8px 30px rgba(31, 155, 215, .75), 0 0 0 8px rgba(31, 155, 215, .12); } }

@media (prefers-reduced-motion: reduce) {
    .login-page *, .login-page *::before, .login-page *::after { animation: none !important; transition: none !important; }
    .login-word { opacity: 1; transform: none; }
}
