* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column; /* Changed to column to stack navbar and form */
    background: url('../images/LoginBGBlurFixed.png') no-repeat center center fixed;
    background-size: cover;
    justify-content: center;
    align-items: center;
    padding-top: 100px; /* Gives space for the fixed navbar */
}

.login_form.spud-login {
    background: #FFFFFF;
    width: 400px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(74, 51, 17, 0.1);
    text-align: center;
}

.spud-login h3 {
    color: #4A3311;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.login-subtext {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.input_box {
    text-align: left;
    margin-bottom: 20px;
}

.input_box label {
    display: block;
    margin-bottom: 8px;
    color: #4A3311;
    font-weight: 600;
    font-size: 0.9rem;
}

.input_box input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #EAEAEA;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input_box input:focus, .input_box input:hover {
    border-color: #F4C542;
}

.input_box input[readonly] {
    cursor: pointer;
    background-color: #FAFAFA;
}

.spud-btn {
    width: 100%;
    background-color: #4A3311;
    color: #F4C542;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.spud-btn:hover { background-color: #2D1E0A; }
.spud-btn:disabled { background-color: #CCC; color: #888; cursor: not-allowed; }

.error-msg {
    background: #FEE2E2;
    color: #B91C1C;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Modal from class_cancellation.php injected perfectly */
.pin-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(74, 51, 17, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pin-modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    width: 320px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.pin-display {
    font-size: 2rem;
    letter-spacing: 10px;
    margin: 20px 0;
    color: #4A3311;
    font-weight: 700;
    min-height: 48px;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.key {
    background: #F4F4F4;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    color: #4A3311;
    transition: background 0.2s;
}

.key:hover { background: #E8D5B5; }
.action-key { background: #FFE4B5; color: #D32F2F; }