/* Staff login — Figma staff sign-in layout */
.login-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 48px;
    position: relative;
    background:
        radial-gradient(circle at 8% 20%, rgba(51, 113, 71, 0.08), transparent 28%),
        radial-gradient(circle at 92% 70%, rgba(186, 30, 30, 0.07), transparent 30%),
        #f4f6f8;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #151515;
}

.login-body::before,
.login-body::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 70px;
    background-image: radial-gradient(#c5ccd3 1.4px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.7;
    pointer-events: none;
}
.login-body::before { left: 28px; top: 42%; }
.login-body::after { right: 28px; top: 42%; }

.login-portal-link {
    position: absolute;
    top: 20px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    color: #337147;
    text-decoration: none;
    font-weight: 650;
    font-size: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(51, 113, 71, 0.2);
    z-index: 2;
}
.login-portal-link:hover {
    background: #fff;
    color: #245536;
}
.login-portal-link i:last-child {
    font-size: 12px;
}

.login-card {
    width: min(420px, calc(100% - 24px));
    margin: 0;
    padding: 28px 28px 24px;
    background: #fff;
    border: 1px solid rgba(21, 21, 21, 0.1);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(21, 21, 21, 0.1);
    position: relative;
    z-index: 1;
}

.login-logo {
    display: block;
    width: 88px;
    height: auto;
    margin: 0 auto 12px;
}

.login-school {
    margin: 0;
    text-align: center;
    color: #ba1e1e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    border: 0;
    padding: 0;
}

.login-place {
    margin: 6px 0 0;
    text-align: center;
    color: #5a5a5a;
    font-size: 14px;
}

.login-divider {
    border: 0;
    border-top: 1px solid rgba(21, 21, 21, 0.12);
    margin: 18px 0 16px;
}

.login-heading {
    margin: 0;
    font-size: 26px;
    font-weight: 750;
    color: #151515;
    text-align: center;
}

.login-sub {
    margin: 6px 0 18px;
    text-align: center;
    color: #5a5a5a;
    font-size: 14px;
}

.login-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(186, 30, 30, 0.08);
    color: #8e1616;
    font-size: 14px;
}

.login-card .form-label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 650;
    color: #3d3d3d;
}

.login-card .form-control {
    width: 100%;
    min-height: 48px;
    margin: 0 0 14px;
    padding: 0 14px;
    border: 1px solid rgba(21, 21, 21, 0.16);
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
}

.login-card .form-control:focus {
    outline: none;
    border-color: #ba1e1e;
    box-shadow: 0 0 0 3px rgba(186, 30, 30, 0.16);
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b8554 0%, #337147 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.login-submit:hover {
    filter: brightness(1.05);
}
.login-submit:focus-visible {
    outline: 2px solid #337147;
    outline-offset: 3px;
}

.login-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(21, 21, 21, 0.16);
    background: #fff;
    color: #151515;
    text-decoration: none;
    font-weight: 650;
    font-size: 15px;
}
.login-secondary:hover {
    background: #f7f8fa;
}

.login-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    min-height: 40px;
    color: #3d5c4a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.login-help:hover { color: #245536; }
.login-help i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(61, 92, 74, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.login-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    text-align: center;
    color: #8a8f94;
    font-size: 12px;
    z-index: 1;
}

@media (max-width: 520px) {
    .login-portal-link {
        top: 12px;
        right: 12px;
        font-size: 13px;
        min-height: 40px;
    }
    .login-school { font-size: 18px; }
    .login-body::before,
    .login-body::after { display: none; }
}
