/* style.css */
:root {
    --accent1: #2563eb;   
    --accent2: #06b6d4;   
    --bg: #f6f8fb; 
    --panel: #ffffff;
    --color-text: #061028; 
    --color-muted: #64748b; 
    --color-border: #e2e8f0; 
    --radius: 12px;       
    --shadow: 0 8px 30px rgba(8,15,30,0.07); 
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text);
}

.auth-form {
    width: 100%;
    max-width: 470px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease;
    max-height: auto;
    overflow-y: auto;
    border: 1px solid rgba(8,15,30,0.03);
    display: flex;
    flex-direction: column;
}
.error-message {
    color: red !important;      
    display: block !important;  
    font-size: 12px !important;
    height: 15px;         
    margin-bottom: 10px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px; 
    text-transform: none; 
    letter-spacing: normal;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-size: 16px;
    transition: all 0.25s ease;
    color: var(--color-text);
    background: #fcfdfe;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent1);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    background: white;
}

.auth-form button {
    width: 100%;
    padding: 16px 0;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: white;
    transition: transform 0.2s ease, filter 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
    margin-top: 10px;
}

.auth-form button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(37,99,235,0.4);
}

.auth-form p {
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
}

.auth-form p a {
    color: var(--accent1);
    font-weight: 600;
    text-decoration: none;
}

.auth-form p a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .auth-form { padding: 24px; max-width: 90%; }
}