/* style.css - Login Page Only */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px; /* Space from the top */
    min-height: 100vh;
    margin: 0;
}

/* --- Main App Container (Holds the single panel) --- */
.app-container {
    width: 100%;
    max-width: 400px; /* Constraint to keep the panel narrow and focused */
}

/* --- Panel Styling --- */
.panel {
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.panel-header {
    background-color: #343a40; /* Dark background for the title bar */
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
}

.panel-body {
    padding: 20px;
}

/* --- Input Styling --- */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.9em;
    color: #343a40;
    margin-bottom: 5px;
}

.panel-body input[type="email"],
.panel-body input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

/* --- Button Styling --- */
.submit-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-top: 5px;
}

.log-in-btn {
    background-color: #007bff; /* Primary button color (Blue) */
    color: white;
    margin-bottom: 10px;
}

.log-in-btn:hover {
    background-color: #0056b3;
}

.sign-up-btn {
    background-color: #6c757d; /* Secondary button color (Gray) */
    color: white;
    margin-bottom: 20px;
}

.sign-up-btn:hover {
    background-color: #5a6268;
}

/* --- Virtual Keypad Grid --- */
#keypad {
    display: grid;
    /* 3 columns for the numbers 7, 8, 9, etc. */
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px;
    margin-top: 10px;
}

.keypad-btn {
    padding: 12px 0;
    font-size: 1.2em;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
}

.keypad-btn:hover {
    background-color: #dee2e6;
}

/* Styling for the last row to match the 0 and Del placement */
#keypad > :nth-child(10) { 
    /* The 10th child (Clear/Spacer) */
    visibility: hidden; 
    /* Placeholder to ensure 0 and del are in the correct columns */
}

.keypad-btn.back-btn {
    font-size: 1em;
}