/* ==========================================================================
   TLG School — portal sign-in
   Layered on top of tlg-theme.css (which supplies the palette and buttons).
   ========================================================================== */

.signin-body {
    min-height: 100vh;
    background: var(--cream);
    display: grid;
    place-items: center;
    padding: 28px 20px;
}

.signin-shell {
    width: 100%;
    max-width: 1060px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11, 23, 51, .16), 0 4px 14px rgba(11, 23, 51, .08);
}

/* ---------- brand panel ---------- */
.signin-aside {
    position: relative;
    isolation: isolate;
    background: var(--navy-800);
    color: #fff;
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.signin-aside::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(760px 320px at 15% 0%, rgba(239, 168, 28, .20), transparent 62%),
        radial-gradient(620px 300px at 90% 100%, rgba(38, 64, 124, .85), transparent 60%);
}
/* concentric rings, echoing the rest of the site */
.signin-aside::after {
    content: "";
    position: absolute; right: -110px; bottom: -140px; z-index: -1;
    width: 340px; height: 340px; border-radius: 50%;
    border: 44px solid rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 30px rgba(239, 168, 28, .05);
    pointer-events: none;
}

.signin-brand { display: flex; align-items: center; gap: 14px; }
.signin-brand img { height: 66px; width: auto; }
.signin-brand strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem; color: #fff; line-height: 1.1;
}
.signin-brand small {
    display: block; margin-top: 4px;
    font-size: .68rem; letter-spacing: .19em; text-transform: uppercase;
    color: var(--gold-400); font-weight: 700;
}

.signin-aside-body { margin-top: auto; }
.signin-motto {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(239, 168, 28, .14);
    border: 1px solid rgba(239, 168, 28, .42);
    color: var(--gold-400);
    padding: 7px 16px; border-radius: 999px;
    font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 20px;
}
.signin-aside blockquote {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.32rem; line-height: 1.45; color: #fff;
    font-style: italic; margin-bottom: 12px;
}
.signin-aside blockquote::before { content: "\201C"; }
.signin-aside blockquote::after  { content: "\201D"; }
.signin-aside cite { color: rgba(255, 255, 255, .68); font-size: .92rem; font-style: normal; }

.signin-back {
    display: inline-flex; align-items: center; gap: 9px;
    color: rgba(255, 255, 255, .78); font-size: .92rem; font-weight: 600;
    transition: color .18s ease, gap .18s ease;
}
.signin-back:hover { color: var(--gold-400); gap: 13px; }
.signin-back-mobile { display: none; }

/* ---------- form panel ---------- */
.signin-main { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.signin-crest-mobile { display: none; }

.login-content h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.85rem; color: var(--navy-700);
    text-transform: capitalize; margin-bottom: 6px;
}
.login-content > p { color: var(--muted); margin-bottom: 28px; }

.login-form .form-group { margin-bottom: 18px; }
.login-form .form-label {
    display: block; font-size: .87rem; font-weight: 650;
    color: var(--navy-700); margin-bottom: 6px;
}
.login-form .form-label.required::after { content: " *"; color: #B4432C; }
.login-form .form-control {
    width: 100%; padding: 13px 15px;
    border: 1px solid var(--line); border-radius: 9px;
    font: inherit; color: var(--ink); background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.login-form .form-control:focus {
    outline: none; border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(38, 64, 124, .14);
}

/* Bootstrap is no longer loaded here, so the markup's d-flex /
   justify-content-between utility classes have to be honoured locally. */
.login-form .checkbox {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin: 6px 0 26px; font-size: .92rem; color: var(--muted);
}
.login-form .checkbox label { margin: 0 !important; display: inline-flex; align-items: center; }
.login-form .checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy-700); }
.login-form .checkbox .pull-right { margin-left: auto; }
.login-form .forgotPass { color: var(--navy-700); font-weight: 600; }
.login-form .forgotPass:hover { color: var(--gold-600); }

/* the theme's button, applied to the existing markup */
.login-form .btn-inline {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; border: 0; border-radius: 999px;
    background: var(--gold-500); color: var(--navy-900);
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem;
    text-transform: uppercase; letter-spacing: .06em;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.login-form .btn-inline:hover {
    background: var(--gold-400); transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(11, 23, 51, .16);
}

.login-content .alert { border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; font-size: .94rem; }
.login-content .alert-danger  { background: #FDF1EF; color: #7A2A18; border: 1px solid #F0C8BF; }
.login-content .alert-success { background: #EDF7F0; color: #14532B; border: 1px solid #BFE3CB; }

/* demo shortcuts (only rendered when demo mode is on) */
.login-content h4 { font-size: .9rem; color: var(--muted); margin: 26px 0 10px; font-family: 'Inter', sans-serif; }
.login-content nav { display: flex; flex-wrap: wrap; gap: 8px; }
.login-content nav button {
    padding: 7px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: #fff;
    font-size: .84rem; color: var(--navy-700); text-transform: capitalize;
}
.login-content nav button:hover { background: var(--navy-050); border-color: var(--navy-600); }

/* the old layout's decorative photo panel is replaced by .signin-aside */
.login-banner { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .signin-shell { grid-template-columns: 1fr; max-width: 520px; }
    .signin-aside { display: none; }
    .signin-main { padding: 36px 26px; }
    .signin-back-mobile { display: inline-flex; color: var(--navy-700); margin-bottom: 22px; }
    .signin-back-mobile:hover { color: var(--gold-600); }
    .signin-crest-mobile { display: block; height: 72px; width: auto; margin: 0 auto 20px; }
    .login-content h3 { text-align: center; }
    .login-content > p { text-align: center; }
}
