* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f4f6fb;
    color: #1f2937;
}

.login-page {
    min-height: 100vh;
    display: flex;
}

.login-left {
    width: 58%;
    background: linear-gradient(135deg, #0f2f57 0%, #164b86 55%, #1e6bb8 100%);
    color: #ffffff;
    padding: 70px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-left:before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -100px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.login-left:after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -80px;
    bottom: -80px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.brand-box,
.system-note {
    position: relative;
    z-index: 2;
}

.school-logo {
    width: 110px;
    height: auto;
    margin-bottom: 28px;
}

.brand-box h1 {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 16px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-box p {
    font-size: 18px;
    color: rgba(255,255,255,0.82);
    margin: 0;
}

.system-note {
    max-width: 520px;
}

.system-note h2 {
    font-size: 26px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.system-note p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

.login-right {
    width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f7f9fc;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(15, 47, 87, 0.12);
    border: 1px solid rgba(15, 47, 87, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 76px;
    height: auto;
    margin-bottom: 14px;
}

.login-header h2 {
    margin: 0;
    font-size: 28px;
    color: #0f2f57;
}

.login-header p {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 15px;
}

.alert-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 48px;
    border: 1px solid #d7dce5;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    color: #111827;
}

.form-group input:focus {
    border-color: #164b86;
    box-shadow: 0 0 0 4px rgba(22, 75, 134, 0.10);
}

.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: #0f2f57;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: 0.2s;
}

.btn-login:hover {
    background: #164b86;
    transform: translateY(-1px);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: #9ca3af;
    font-size: 13px;
}

@media screen and (max-width: 900px) {
    .login-page {
        display: block;
    }

    .login-left {
        width: 100%;
        padding: 40px 28px;
        min-height: 300px;
    }

    .brand-box h1 {
        font-size: 32px;
    }

    .school-logo {
        width: 90px;
    }

    .login-right {
        width: 100%;
        padding: 28px 18px;
    }

    .login-card {
        padding: 30px 24px;
        border-radius: 20px;
    }
}