/* Base style */
body {
    margin: 0;
    padding: 0;
    background: #98fb7a;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-right {
    background: #fff;
    width: 25%;
    padding: 48px 32px;
    border-radius: 18px;
    box-shadow: 0 4px 24px #0002;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-right h3 { font-size: 23px; font-weight: bold; margin-bottom: 8px; }
.login-right .sub {
    font-size: 13px;
    margin-bottom: 18px;
    color: #444;
}
.login-right .sub a {
    color: #6c47d6;
    text-decoration: none;
    font-weight: 500;
}
.login-form label { font-size: 14px; font-weight: 500; margin-bottom: 2px; display: block; }
.login-form input[type="text"],
.login-form input[type="password"],
.login-form select,
.login-form input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 15px;
    background: #f7f7f7;
    transition: border 0.2s;
    box-sizing: border-box;
}
.login-form input:focus,
.login-form select:focus {
    border: 1.5px solid #6c47d6;
    outline: none;
}
.login-form .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.login-form .remember {
    font-size: 13px;
    display: flex;
    align-items: center;
}
.login-form .remember input[type="checkbox"] {
    margin-right: 5px;
}
.login-form .forgot {
    font-size: 13px;
    color: #6c47d6;
    text-decoration: none;
}
.login-form .btn-login {
    width: 100%;
    background: #6c47d6;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    padding: 12px 0;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.login-form .btn-login:hover { background: #4a2fa7; }
.login-form .error { color: #e44; font-size: 14px; margin-bottom: 10px; text-align: center; }
.login-right .or {
    text-align: center;
    margin: 18px 0 10px 0;
    color: #888;
    font-size: 13px;
}
.login-right .social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}
.login-right .social a {
    display: inline-block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f2f2f2;
    text-align: center;
    line-height: 38px;
    font-size: 18px;
    color: #555;
    transition: background 0.2s;
    border: 1px solid #eee;
    text-decoration: none;
}
.login-right .social a:hover {
    background: #e0d8fa;
}
.login-right .footer {
    margin-top: 18px;
    text-align: center;
    color: #b5aee0;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: bold;
}
.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}
.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
}
.school-name {
    font-size: 17px;
    font-weight: bold;
    color: #6c47d6;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* VGA (≤ 640px) */
@media (max-width: 640px) {
    .login-container { padding: 0 2vw; }
    .login-right {
        width: 90% !important;
        min-width: 0 !important;
        max-width: 90% !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 12px #0001 !important;
        margin: 5% auto !important;
        padding: 12px 6px !important;
    }
    .logo-img { width: 60px !important; height: 60px !important; }
    .school-name { font-size: 15px; }
    .login-form label,
    .login-form input,
    .login-form select,
    .login-form button { font-size: 1rem !important; width: 100% !important; }
    .login-form input,
    .login-form select { padding: 10px !important; margin-bottom: 14px !important; border-radius: 7px !important; font-size: 15px !important; }
    .btn-login { padding: 12px !important; font-size: 1.1rem !important; }
}

/* HD (720px - 1280px) */
@media (min-width: 720px) and (max-width: 1280px) {
    .login-container { padding: 5%; }
    .login-right {
        width: 25%;
        min-width: 320px;
        max-width: 90vw;
        padding: 32px 18px;
        border-radius: 16px;
        box-shadow: 0 2px 12px #0001;
    }
    .logo-img { width: 80px; height: 80px; }
}

/* 2K (QHD) – 2560 x 1440 ke atas */
@media (min-width: 1921px) {
    .login-container { padding: 5%; }
    .login-right {
        width: 25%;
        min-width: 350px;
        max-width: 600px;
        padding: 48px 32px;
        border-radius: 18px;
        box-shadow: 0 4px 24px #0002;
    }
    .logo-img { width: 120px; height: 120px; }
}

/* Portrait mode for all breakpoints */
@media (orientation: portrait) {
    .login-container { flex-direction: column; }
    .login-right { margin: 5% auto; }
}

/* Landscape mode for all breakpoints */
@media (orientation: landscape) {
    .login-container { flex-direction: row; }
    .login-right { margin: auto; }
}