/* static/css/register.css */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background: #f4f7f9;
    padding: 20px; /* Added for mobile breathing room */
}

.auth-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 600px;
}

h2 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px; /* FIXED: 16px prevents iOS auto-zoom */
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none; /* Fixes weird shadow on mobile Safari */
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
    touch-action: manipulation; /* Optimizes for mobile tapping */
}

.btn-login:hover {
    background: #34495e;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}


/* --- Update this in static/css/register.css --- */
@media (max-width: 600px) {
    .login-wrapper {
        padding: 10px; /* Thinner margins on very small screens */
        align-items: flex-start; /* Start box at top so keyboard doesn't hide inputs */
        padding-top: 30px;
    }

    .auth-box {
        padding: 25px 15px;
        border-radius: 12px; /* Slightly sharper corners look better on small screens */
        box-shadow: none; /* Remove shadow on mobile for a cleaner 'flat' look */
        border: 1px solid #eee;
    }

    h2 {
        font-size: 1.5rem;
    }

    .form-grid {
        gap: 15px; /* Tighter gap to keep the form short */
    }

    /* Make sure labels and inputs aren't too far apart */
    .form-group label {
        margin-bottom: 5px;
    }

    .btn-login {
        padding: 16px; /* Even larger button for "Fat Finger" accessibility */
        font-size: 1.1rem;
    }
}