/* frontend/css/login.css */

body {
    background: radial-gradient(circle, #f8f9fa 0%, #e2e5e9 100%);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    width: 90%; /* Leaves a little breathing room on the sides */
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-sizing: border-box;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4b4b4b;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 14px;
    font-size: 16px; /* Crucial for preventing iOS auto-zoom */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
}

button {
    width: 100%;
    padding: 16px;
    background-color: #004a99;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

button:active {
    background-color: #0056b3;
    transform: scale(0.98); /* Gives a nice "click" feel on touch */
}

/* These small helpers aren't in your CSS file yet */
        .hidden { display: none; }
        .link-text { 
            display: block; 
            margin-top: 20px; 
            color: #2b2b2b; 
            cursor: pointer; 
            font-size: 14px; 
        }
        .instruction-text {
            color: #666; 
            margin-bottom: 20px; 
            font-size: 14px;
        }
        #message { margin-top: 15px; font-size: 14px; min-height: 1em; }

#verification-code {
    width: 100%;
    padding: 12px;
    margin: 1rem 0;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem; /* This creates the wide 2FA spacing */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.logo-wrapper {
    margin-bottom: 2.5rem; /* Increased space to separate Branding from the Form */
    display: flex;
    justify-content: center;
}

.text-logo {
    font-size: 40px; /* Made bigger to ensure it is clearly "Step 1" */
    font-weight: 800; 
    color: #004a99; 
    letter-spacing: -1.5px;
}

h2 {
    color: #4b4b4b;
    margin-bottom: 2rem;
    font-size: 18px; /* Slightly smaller than before to let the Logo shine */
    text-transform: uppercase; /* Makes "LOGIN" look like a sub-header */
    letter-spacing: 1px;
    font-weight: 600;
}
