@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #1769aa;
    --blue-dark: #124d80;
    --blue-soft: #eaf4fc;
    --navy: #12324a;
    --text: #26384a;
    --muted: #718096;
    --border: #d8e3ed;
    --surface: #ffffff;
    --page: #f3f7fb;
    --red: #1769aa;
    --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--page);
}
button, input { font: inherit; }

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    background: var(--surface);
}

.login-info {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 76px);
    color: #fff;

    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.16), transparent 25%),
        radial-gradient(circle at 12% 88%, rgba(49,151,210,.24), transparent 30%),
        linear-gradient(135deg, #123b5d 0%, #1769aa 58%, #2185b8 100%);
}
.login-info::before,
.login-info::after { 
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    pointer-events: none;
}
.login-info::before {
    width: 500px; height: 500px;
    right: -245px; bottom: -210px;
    box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.02);
}
.login-info::after {
    width: 270px; height: 270px;
    left: -155px; top: 18%;
    box-shadow: 0 0 0 28px rgba(255,255,255,.025);
}
.info-content { width: 100%; max-width: 590px; margin: auto 0; position: relative; }
.school-logo { margin-bottom: 26px; }
.logo-circle {
    width: 78px; height: 78px;
    display: grid; place-items: center;
    font-size: 34px;
}
.info-content h1 {
    margin: 0;
    font-size: clamp(38px, 3vw, 52px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 800;
}
.school-name {
    margin: 12px 0 0;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.5;
    font-weight: 600;
    color: rgba(255,255,255,.94);
}
.info-description {
    max-width: 500px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.9;
}
.info-features { display: grid; gap: 12px; margin-top: 32px; }
.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 13px;
    background: rgba(255,255,255,.075);
    transition: background .2s ease, transform .2s ease;
}
.feature:hover { background: rgba(255,255,255,.13); transform: translateX(3px); }
.feature-icon {
    flex: 0 0 42px;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    font-size: 18px;
}
.feature strong { display: block; font-size: 13px; font-weight: 700; }
.feature span { display: block; margin-top: 5px; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.75); }
.info-footer { position: relative; margin-top: 34px; font-size: 11px; line-height: 1.7; color: rgba(255,255,255,.7); }

.login-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 5vw, 76px);
    background:
        radial-gradient(circle at 15% 15%, rgba(23,105,170,.08), transparent 28%),
        linear-gradient(145deg, #f7fafd 0%, #edf4f9 100%);
}
.login-card { width: 100%; max-width: 430px; }
.mobile-logo { display: none; }
.login-header { margin-bottom: 30px; }
.welcome {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 7px 11px;
    border: 1px solid #d5e8f7;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 700;
}
.login-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(27px, 3vw, 34px);
    line-height: 1.25;
    letter-spacing: -1px;
    font-weight: 800;
}
.login-header p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.form-group { margin-bottom: 21px; }
.form-group label { display: block; margin-bottom: 9px; color: #354b60; font-size: 12px; font-weight: 700; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.input-wrapper { position: relative; }
.input-wrapper > i {
    position: absolute; left: 15px; top: 50%;
    transform: translateY(-50%);
    color: #8297aa; font-size: 17px; pointer-events: none;
}
.input-wrapper input {
    display: block;
    width: 100%; height: 52px;
    padding: 0 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #fbfdff;
    color: var(--text);
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input-wrapper input::placeholder { color: #9aa9b8; }
.input-wrapper input:hover { border-color: #b7cbdc; }
.input-wrapper input:focus {
    border-color: #1769aa;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23,105,170,.11);
}
.input-wrapper:focus-within > i { color: var(--blue); }
.password-toggle {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border: 0; border-radius: 7px;
    background: transparent; color: #8297aa;
    cursor: pointer; font-size: 16px;
}
.password-toggle:hover { color: var(--blue); background: var(--blue-soft); }
.form-options { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 24px; }
.remember { display: inline-flex; align-items: center; gap: 8px; color: #6e8092; font-size: 12px; cursor: pointer; }
.remember input { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; }
.login-button {
    width: 100%; min-height: 52px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 10px;
    background: linear-gradient(100deg, #145b96, #1976b9);
    box-shadow: 0 7px 17px rgba(18,77,128,.20);
    color: #fff; font-size: 13px; font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.login-button:hover { background: linear-gradient(100deg, #104875, #145f9b); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(18,77,128,.25); }
.login-button:active { transform: translateY(0); }
.login-button:disabled { cursor: wait; opacity: .75; transform: none; }
.login-button > i { transition: transform .2s ease; }
.login-button:hover > i { transform: translateX(3px); }
.alert { display: none; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 20px; border-radius: 10px; font-size: 12px; line-height: 1.6; }
.alert-error { border: 1px solid #f5c9c7; background: #fff4f3; color: #b42318; }
.alert.show { display: flex; }
.login-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    margin-top: 28px; padding-top: 19px;
    border-top: 1px solid #e7edf3;
    color: #8b9aaa; font-size: 10px; text-align: center;
}
.separator { color: #c7d2dc; }
.mobile-logo-circle {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #eaf4fc, #d9ebf8);
    color: var(--blue);
    font-size: 25px;
    box-shadow: 0 7px 18px rgba(23,105,170,.12);
}
.login-button:focus-visible, .password-toggle:focus-visible { outline: 3px solid rgba(23,105,170,.25); outline-offset: 3px; }

@media (max-width: 900px) {
    .login-wrapper { grid-template-columns: 1fr; }
    .login-info { min-height: auto; padding: 32px clamp(22px, 6vw, 50px); }
    .info-content { max-width: 700px; }
    .info-content h1 { font-size: clamp(36px, 7vw, 48px); }
    .info-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 23px; }
    .feature { align-items: flex-start; flex-direction: column; padding: 13px; }
    .feature span { font-size: 10px; }
    .info-footer { margin-top: 24px; }
    .login-panel { min-height: auto; padding: 44px 24px 38px; }
    .login-card { max-width: 500px; }
}
@media (max-width: 560px) {
    .login-info { padding: 27px 21px 23px; }
    .school-logo { margin-bottom: 17px; }
    .logo-circle { width: 58px; height: 58px; border-radius: 16px; font-size: 27px; }
    .info-content h1 { font-size: 37px; }
    .school-name { font-size: 15px; }
    .info-description { margin-top: 14px; font-size: 12px; line-height: 1.75; }
    .info-features { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
    .feature { flex-direction: row; align-items: center; gap: 11px; padding: 10px 12px; }
    .feature-icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 16px; }
    .feature strong { font-size: 12px; }
    .feature span { font-size: 10px; margin-top: 3px; }
    .info-footer { margin-top: 19px; font-size: 10px; }
    .login-panel { padding: 34px 21px 29px; }
    .login-header { margin-bottom: 25px; }
    .login-header h2 { font-size: 27px; }
    .login-header p { font-size: 12px; }
    .input-wrapper input { height: 50px; }
    .login-button { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
