* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    /* Removed height:100vh + overflow:hidden — this blocked vertical scrolling
       on the public landing page (layouts/app.blade.php loads this file).
       Pages that need a full-height viewport set their own scoped rules. */
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    width: 100%;
    height: 100%;
    background-image: url("../assets/PUPT picture.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}

.login-container::before {
    content: "";
    position: absolute;
    inset: 0;
}

.login-panel {
    width: 50%;
    max-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.logo {
    width: 100px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.login-panel h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.login-panel p {
    color: #666;
    margin-bottom: 30px;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login-btn {
    width: 100%;
    padding: 15px;
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    color: white;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.login-btn:active {
    transform: scale(0.98);
    box-shadow: none;
}

.student-btn {
    background: linear-gradient(135deg, #15b507 0%, #0f8e05 100%);
}

.admin-btn,
.security-btn {
    background: linear-gradient(135deg, #d90801 0%, #aa0500 100%);
}

.terms {
    position: absolute;
    bottom: 20px;
    font-size: 0.8em;
}

.terms a {
    color: #007bff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .container {
        align-items: flex-end;
    }

    .container::before {
        background-color: rgba(0, 0, 0, 0.2);
    }

    .login-panel {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 50%;
        justify-content: flex-start;
        padding: 60px 30px 40px 30px;
        background-color: #ffffff;
        border-radius: 30px 30px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        color: #333;
        overflow: visible;
    }

    .logo {
        position: absolute;
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
        width: 110px;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
        margin-bottom: 0;
    }

    .login-panel h2 {
        font-size: 1.3em;
        margin-top: 10px;
    }

    .login-panel p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .login-buttons {
        width: 100%;
    }

    .terms {
        position: relative;
        bottom: auto;
        margin-top: 30px;
    }
}
