* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body.student-login-body {
    background:
        linear-gradient(rgba(22, 42, 61, 0.18), rgba(22, 42, 61, 0.18)),
        url('../images/student-portal-bg.jpg') center center / cover no-repeat fixed;
    margin: 0;
    min-height: 100vh;
}

.student-login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
}

.student-login-box {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
    margin: auto;
    max-width: 430px;
    padding: 28px 28px 24px;
    width: min(100%, 430px);
}

.student-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.student-login-logo img {
    height: 116px;
    object-fit: contain;
    width: 116px;
}

.student-login-branding {
    margin-bottom: 16px;
    text-align: center;
}

.student-login-college {
    color: #156637;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0 0 8px;
}

.student-login-branding h1 {
    color: #314257;
    font-size: 28px;
    margin: 0 0 10px;
}

.student-login-copy {
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.student-login-alert {
    background: #fff2f2;
    border: 1px solid #e7baba;
    border-radius: 6px;
    color: #c62828;
    font-size: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.student-login-form {
    display: grid;
    gap: 14px;
}

.student-login-field {
    display: grid;
    gap: 6px;
}

.student-login-field label {
    color: #4c5d70;
    font-size: 12px;
    font-weight: 700;
}

.student-login-form input {
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    color: #4c5d70;
    font-size: 14px;
    height: 48px;
    outline: none;
    padding: 0 14px;
    width: 100%;
}

.student-login-form input:focus {
    border-color: #0ac986;
    box-shadow: 0 0 0 3px rgba(10, 201, 134, 0.12);
}

.student-login-form button {
    background: #15c78a;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    height: 50px;
    margin-top: 4px;
    width: 100%;
}

.student-login-form button:hover {
    background: #11b77d;
}

.student-login-app-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
}

.student-login-app-links a {
    color: #165dbe;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.student-login-app-links a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 640px) {
    body.student-login-body {
        background-position: center top;
        background-attachment: scroll;
    }

    .student-login-shell {
        align-items: flex-start;
        padding: 18px 12px 28px;
    }

    .student-login-box {
        margin-top: 28px;
        max-width: 100%;
        padding: 22px 18px 18px;
        width: 100%;
    }

    .student-login-logo img {
        height: 96px;
        width: 96px;
    }

    .student-login-college {
        font-size: 19px;
    }

    .student-login-branding h1 {
        font-size: 24px;
    }

    .student-login-copy {
        font-size: 13px;
    }

    .student-login-form input,
    .student-login-form button {
        height: 46px;
    }
}
