/* 
   Auth System - Prof Chez Vous
   Modern Premium Design - Minimalist & Mobile-First
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Synced with base.css */
    --brand-50: #dcfce7;
    --brand-500: #15803d;
    --brand-600: #166534;
    --brand-700: #14532d;
    
    /* Neutrals - Pure Minimalist */
    --bg-main: #ffffff;
    --bg-subtle: #fafafa;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-hover: #d1d5db;
    
    /* Functional */
    --error: #dc2626;
    --error-bg: #fef2f2;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* 
   Main Wrapper 
   Clean white background, no gradients.
*/
.auth-page-wrapper {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 1.5rem 0; /* Reduced vertical padding */
    position: relative;
}

/* Disabled shapes as requested */
.auth-bg-shapes {
    display: none;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--white);
    border: none; /* Removed border for a cleaner look if requested, or keep very subtle */
    border-radius: 0; /* Will be adjusted on desktop */
    padding: 2rem 1.5rem; /* Reduced padding */
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem; /* Reduced margin */
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Role Selector - Ultra Slim */
.role-options-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem; /* Tightened gap */
    margin-bottom: 1.25rem; /* Reduced margin */
}

.role-option-card {
    position: relative;
    cursor: pointer;
}

.role-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border); /* Thinner border */
    border-radius: 12px;
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
    text-align: center;
}

.role-card-content svg {
    width: 22px; /* Smaller icons */
    height: 22px;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.role-card-content span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Smoother transitions for role selection */
.role-radio-input:checked + .role-card-content {
    background: var(--brand-50);
    border-color: var(--brand-500);
}

.role-radio-input:checked + .role-card-content svg {
    color: var(--brand-600);
    transform: scale(1.05);
}

.role-radio-input:checked + .role-card-content span {
    color: var(--brand-700);
}

/* Form Styling - Compact */
.form-group {
    margin-bottom: 1rem; /* Tightened vertical space */
}

.form-group label {
    display: block;
    font-size: 0.8125rem; /* Slightly smaller labels */
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.875rem; /* More compact inputs */
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

/* Actions */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem; /* More compact button */
    background: var(--brand-500);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-auth:hover {
    background: var(--brand-600);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--brand-500);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Mobile Full Width & Optimization */
@media (max-width: 640px) {
    .auth-page-wrapper {
        padding: 0;
        align-items: flex-start; /* Start from top on mobile */
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 0; /* Eat all width */
        min-height: 100dvh;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}
