﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f1f7ec; /* Soft background from dashboard */
    min-height: 100vh;
    overflow: hidden;
}

/* MAIN WRAPPER */
.login-wrapper {
    width: 100%;
    min-height: 100vh;  
    display: flex;
}

/* LEFT PANEL */
.login-left {
    width: 50%;
    padding-left: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.school-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 20px;
}

.school-name {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 500;
    color: #000;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.portal-title {
    font-size: 22px;
    color: #111;
    margin-bottom: 40px;
}

/* NOTICE */
.notice-box {
    width: 440px;
    background: #a9e365; /* Matches the dashboard pill color */
    border: 1px solid #111;
    border-radius: 30px;
    padding: 22px 30px;
    font-size: 15px;
    text-align: center;
    color: #111;
    line-height: 1.4;
}

    .notice-box strong {
        font-weight: 700;
    }

/* RIGHT PANEL */
.login-right {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.login-card {
    width: 500px;
    background: #fff;
    border: 1px solid #111;
    border-radius: 45px;
    padding: 60px 50px;
    position: relative;
    left: -80px; /* Increase this number (e.g., -100px) to push it even further left */
}

    .login-card h2 {
        font-size: 32px;
        font-weight: 500;
        margin-bottom: 45px;
        color: #000;
        text-align: center;
    }

/* MESSAGE */
.login-message {
    display: none;
    margin-bottom: 25px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

    .login-message.error {
        display: block;
        background: #ffe6e6;
        color: #b30000;
        border: 1px solid #ffb0b0;
    }

    .login-message.success {
        display: block;
        background: #e7ffe7;
        color: #0f6b0f;
        border: 1px solid #9fdd9f;
    }

/* FORM */
.form-group {
    margin-bottom: 25px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        margin-bottom: 8px;
        color: #111;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        height: 48px;
        border: 1px solid #111;
        border-radius: 30px;
        padding: 0 20px;
        font-size: 15px;
        font-family: 'Inter', sans-serif;
        outline: none;
        background: #fff;
        transition: 0.2s;
    }

        .form-group input:focus {
            border-color: #0b5921;
            box-shadow: 0 0 0 3px rgba(11, 89, 33, 0.1);
        }

/* PASSWORD */
.password-wrapper {
    position: relative;
}

.show-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #111;
}

/* LOGIN BUTTON */
.login-btn {
    width: 200px;
    height: 48px;
    margin: 40px auto 0;
    display: block;
    border: none;
    border-radius: 30px;
    background: #0b5921;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .login-btn:hover {
        background: #073a15;
    }

    .login-btn:disabled {
        opacity: .75;
        cursor: not-allowed;
    }

/* RESPONSIVE */
@media(max-width:1400px) {
    .school-name {
        font-size: 56px;
    }

    .login-card {
        width: 450px;
    }
}

@media(max-width:1100px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left, .login-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px;
        text-align: center;
    }

    .notice-box {
        margin: 0 auto;
    }
}
