:root {
    --student-red: #c62828;
    --student-red-dark: #8f1d1d;
    --student-ink: #202632;
    --student-muted: #7b8490;
    --student-line: #edf1f4;
    --student-soft-red: #fbe9e9;
}

.student-login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: #eeeeee;
    font-family: Arial, Helvetica, sans-serif;
}

.student-login-card {
    display: grid;
    grid-template-columns: minmax(347px, 0.9fr) minmax(360px, 1.1fr);
    width: min(840px, 100%);
    min-height: 470px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(28, 41, 55, 0.18);
}

.student-login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 4vw, 40px) clamp(26px, 5vw, 58px);
}

.student-login-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -8px 0 22px;
    color: var(--student-red);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.student-login-back:hover {
    color: var(--student-red-dark);
}

.student-login-heading {
    text-align: center;
}

.student-login-heading p {
    margin: 0 0 8px;
    color: var(--student-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.student-login-heading h1 {
    margin: 0;
    color: var(--student-ink);
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.student-login-heading h1 span {
    color: var(--student-red);
}

.student-login-heading small {
    display: block;
    max-width: 350px;
    margin: 12px auto 0;
    color: var(--student-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.student-login-alert {
    max-width: 350px;
    margin: 16px auto 0;
}

.student-login-form {
    width: min(350px, 100%);
    margin: 22px auto 0;
}

.student-field {
    display: block;
    margin-bottom: 14px;
}

.student-field span {
    display: block;
    margin-bottom: 8px;
    color: #53606c;
    font-size: 0.8rem;
    font-weight: 800;
}

.student-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--student-line);
    border-radius: 4px;
    color: var(--student-ink);
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.student-field input::placeholder {
    color: #b4bbc2;
}

.student-field input:focus {
    border-color: rgba(198, 40, 40, 0.58);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.student-login-help {
    display: flex;
    justify-content: space-between;
    margin: 0 0 18px;
    color: var(--student-muted);
    font-size: 0.82rem;
}

.student-login-help span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.student-login-help i {
    color: var(--student-red);
}

.student-login-submit {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 4px;
    background: var(--student-red);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 16px 26px rgba(198, 40, 40, 0.22);
}

.student-login-submit:hover,
.student-login-submit:focus {
    background: var(--student-red-dark);
}

.student-login-visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    background:
        linear-gradient(145deg, rgba(198, 40, 40, 0.92), rgba(143, 29, 29, 0.94)),
        var(--student-red);
}

.student-photo-placeholder {
    width: 347px;
    height: 532px;
    max-width: 100%;
    background: #ffffff;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.16);
}

.student-photo-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 920px) {
    .student-login-page {
        padding: 18px;
    }

    .student-login-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .student-login-visual {
        order: -1;
        min-height: 260px;
        padding: 22px;
    }

    .student-login-form-panel {
        padding: 28px 22px 34px;
    }

    .student-login-back {
        margin-bottom: 24px;
    }

    .student-photo-placeholder {
        width: min(347px, 82vw);
        height: min(532px, 220px);
    }
}

@media (max-width: 520px) {
    .student-login-page {
        padding: 0;
        background: #ffffff;
    }

    .student-login-card {
        width: 100%;
        box-shadow: none;
    }

    .student-login-visual {
        min-height: 210px;
    }

    .student-login-form-panel {
        padding: 24px 18px 30px;
    }

    .student-field input {
        height: 44px;
    }
}
