/* css/auth-style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-box {
    background: white;
    
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

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

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

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #7C3AED;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #6D28D9;
}

.switch-auth {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.switch-auth a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* --- NEW: Google Auth & Divider Styles --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
       
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e1e1;
}

.divider::before { margin-right: 10px; }
.divider::after { margin-left: 10px; }

/* Message Box Styles */
.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}
.message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}
.message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* Forgot Password Link */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.forgot-pass {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.forgot-pass:hover {
    color: #7C3AED;
}

.g_id_signin{
    margin-left: 20px;

}
/* --- MOBILE RESPONSIVENESS FIX --- */
@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem; /* Reduce padding from 2.5rem to 1.5rem */
        width: 95%;      /* Ensure card fits within screen */
        margin: 0 auto;
    }

    /* Force the Google button container to not overflow */
    .g_id_signin {
        width: 100%;
    
        overflow: hidden;
    }
    
    /* Adjust input fields to be safe */
    input {
        font-size: 16px; /* Prevents auto-zoom on iPhone */
    }
}