@font-face {
    font-family: 'Montserrat';
    src: url('../../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body.gms-login {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #1c4480;
    background: #f4f6f9;
    letter-spacing: 0.2px;
}

.gms-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #fff url('../images/gms-login-watermark.png') center center / min(92vw, 920px) no-repeat;
    pointer-events: none;
}

.gms-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 70px;
}

.gms-login-logo-top {
    text-align: center;
    margin-bottom: 12px;
}

.gms-login-logo-top img {
    max-width: 113px;
    max-height: 112px;
    width: auto;
    height: auto;
}

.gms-login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 10px 30px 0;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(28, 68, 128, 0.08);
}

.gms-login-card h1 {
    margin: 0 0 18px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #1c4480;
}

.gms-login-subtitle {
    display: none;
}

.gms-login-school-line {
    margin: -8px 0 16px;
    text-align: center;
    font-size: 13px;
    color: #5b6b7c;
    line-height: 1.5;
}

.gms-alert {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.gms-alert-error {
    background: rgba(223, 0, 36, 0.08);
    color: #8a0016;
    border: 1px solid rgba(223, 0, 36, 0.35);
}

.gms-alert-success {
    background: rgba(153, 207, 21, 0.16);
    color: #3f5a08;
    border: 1px solid rgba(153, 207, 21, 0.45);
}

.gms-field {
    margin-bottom: 15px;
}

.gms-field label {
    display: none;
}

.gms-input-wrap {
    position: relative;
}

.gms-input {
    width: 100%;
    height: 44px;
    padding: 6px 12px;
    border: 1px solid #c5d0dc;
    border-radius: 6px;
    background: #f0f4f8;
    font: inherit;
    color: #1c4480;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.gms-input::placeholder {
    color: #5b6b7c;
}

.gms-input:focus {
    border-color: #00a8ec;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 168, 236, 0.18);
}

.gms-input-password {
    padding-right: 44px;
}

.gms-toggle-password {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #8290a3;
    cursor: pointer;
    font-size: 16px;
}

.gms-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -30px;
    padding: 25px 30px;
    border-top: 1px solid #d9e2ec;
    background: #f4f6f9;
}

.gms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 2px;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.gms-btn-primary {
    background: #1c4480;
    color: #fff;
}

.gms-btn-primary:hover {
    background: #163668;
    color: #fff;
}

.gms-btn-link {
    background: transparent;
    color: #00a8ec;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    padding: 0;
    min-height: auto;
}

.gms-btn-link:hover {
    color: #1c4480;
    text-decoration: underline;
}

.gms-login-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-align: center;
    margin: 0;
    padding: 10px 16px 18px;
    color: #5b6b7c;
    font-size: 13px;
    line-height: 1.6;
    background: transparent;
}

.gms-back-home {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.gms-back-home a {
    color: #00a8ec;
    text-decoration: none;
}

.gms-back-home a:hover {
    color: #1c4480;
    text-decoration: underline;
}

.gms-login-footer-muted {
    font-size: 12px;
    opacity: 0.85;
}

@media (max-width: 480px) {
    .gms-login-bg {
        background-size: min(110vw, 720px);
    }

    .gms-login-card {
        padding: 10px 20px 0;
    }

    .gms-actions {
        margin: 0 -20px;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .gms-btn-link {
        text-align: center;
    }
}
