:root {
    --primary-blue: #009bb3; /* NovaMED Cyan */
    --primary-dark: #007a8c;
    --primary-light: #e0f7fa;
    --bg-gray: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #757575;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: url('../../assets/images/bg-patient.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page { display: none; width: 100%; }
.page.active { display: flex; justify-content: center; }

.login-container {
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.login-header h1 {
    color: var(--primary-blue) !important;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: #cbd5e1; }

.custom-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #f8fafc;
    transition: all 0.3s ease;
}

/* Évite le zoom automatique sur iPhone au focus (inputs < 16px) */
#loginPage .custom-input,
#registerPage .custom-input,
#registerPage .custom-select-elite {
    font-size: 16px;
}

.password-field-wrap {
    position: relative;
    width: 100%;
}

.password-field-wrap .custom-input {
    padding-right: 48px;
}

.password-field-wrap .toggle-pwd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    line-height: 1;
}

.password-field-wrap .toggle-pwd:hover {
    color: var(--primary-blue);
}

.custom-input:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 155, 179, 0.15);
}

.custom-input::placeholder {
    color: #64748b;
}

.main-action-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0369a1 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0, 155, 179, 0.3);
    transition: all 0.3s ease;
}

.main-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 155, 179, 0.4);
}

.login-footer { text-align: center; margin-top: 25px; font-size: 0.9rem; color: #94a3b8; }
.login-footer a { color: var(--primary-blue); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.2s; }
.login-footer a:hover { border-bottom-color: var(--primary-blue); }

/* Triple S\u00e9lecteur Elite - NovaMED */
.elite-dob-grid {
    display: grid;
    grid-template-columns: 70px 1fr 100px; /* Jour Petit, Mois Large, Ann\u00e9e Moyen */
    gap: 8px;
    margin-top: 5px;
}

.custom-select-elite {
    width: 100%;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    font-size: 16px;
    font-weight: 500;
    color: #f8fafc;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23009bb3' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    transition: all 0.3s ease;
}

.custom-select-elite:focus {
    border-color: var(--primary-blue);
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-select-elite option {
    background: #0f172a;
    color: #f8fafc;
}

