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

:root {
    --primary-gradient: linear-gradient(135deg, #E7B623 0%, #d4a017 50%, #c19116 100%);
    --secondary-gradient: linear-gradient(135deg, #E7B623 0%, #d4a017 100%);
    --accent-gradient: linear-gradient(135deg, #E7B623 0%, #d4a017 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --success: #10b981;
    --error: #ef4444;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --gold: #E7B623;
    --bg-image: url('https://pub-1808a6a8ccc542bdb395940eeefed4e4.r2.dev/captiveportal/marys-front-6.jpg');
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    height: 100%;
    overflow-x: hidden;
}

.bg-container {
    position: relative;
    min-height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color-scheme: light;
}

body.dark-mode .bg-container {
    color-scheme: dark;
}

.bg-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
}

.animated-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) { width: 100px; height: 100px; top: 10%; left: 10%; animation-delay: -2s; }
.floating-shape:nth-child(2) { width: 150px; height: 150px; top: 60%; right: 10%; animation-delay: -8s; }
.floating-shape:nth-child(3) { width: 80px;  height: 80px;  bottom: 20%; left: 20%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25%      { transform: translateY(-20px) rotate(90deg); }
    50%      { transform: translateY(-10px) rotate(180deg); }
    75%      { transform: translateY(-30px) rotate(270deg); }
}

.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover,
.lang-btn:focus-visible,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    outline: none;
}

.lang-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 12px;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    user-select: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    outline: none;
}

.theme-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-glass);
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    transition: all 0.3s ease;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.logo-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.4;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-wrapper--password input {
    padding-right: 3rem;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: var(--text-secondary);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-secondary);
    transition: background 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.password-toggle:focus-visible {
    box-shadow: 0 0 0 2px var(--gold);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0.25rem 0;
}

.checkbox-container:hover {
    transform: translateX(2px);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.terms-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.terms-link:hover,
.terms-link:focus-visible {
    color: #d4a017;
    outline: none;
}

.terms-link:focus-visible {
    box-shadow: 0 0 0 2px var(--gold);
    border-radius: 3px;
}

.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--accent-gradient);
    border-color: transparent;
}

input[type="checkbox"]:checked + .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

input[type="checkbox"]:focus-visible + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(231, 182, 35, 0.4);
}

.checkbox-container label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ===== Terms Modal ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 15, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-backdrop.is-open {
    opacity: 1;
}

.modal-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(231, 182, 35, 0.15);
}

.modal-backdrop.is-open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-header h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.modal-close {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
    outline: none;
}

.modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.modal-body:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.modal-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin: 1.25rem 0 0.4rem;
    letter-spacing: 0.3px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
}

.modal-body ul {
    margin: 0.4rem 0 0.6rem;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.modal-body li {
    margin-bottom: 0.25rem;
}

.modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(231, 182, 35, 0.3);
    border-radius: 3px;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.015);
}

.btn-secondary,
.btn-primary {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    outline: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(231, 182, 35, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 182, 35, 0.45);
    outline: none;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(231, 182, 35, 0.45);
}

@media (max-width: 480px) {
    .modal-card {
        max-height: 95vh;
        border-radius: 16px;
    }
    .modal-header { padding: 1rem 1rem 0.75rem; }
    .modal-header h2 { font-size: 1.1rem; }
    .modal-body { padding: 1rem; font-size: 0.88rem; }
    .modal-footer {
        padding: 0.75rem 1rem 1rem;
        flex-direction: column-reverse;
    }
    .btn-secondary, .btn-primary { width: 100%; }
}

body.dark-mode .modal-card {
    background: rgba(30, 30, 35, 0.98) !important;
    border-color: rgba(231, 182, 35, 0.2) !important;
}
body.dark-mode .modal-header { border-bottom-color: rgba(255, 255, 255, 0.08) !important; }
body.dark-mode .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}
body.dark-mode .modal-body,
body.dark-mode .modal-body strong { color: rgba(255, 255, 255, 0.92) !important; }
body.dark-mode .modal-body p,
body.dark-mode .modal-body ul,
body.dark-mode .modal-body li { color: rgba(255, 255, 255, 0.7) !important; }
body.dark-mode .modal-close {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
body.dark-mode .modal-close:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}
body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}
body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.submit-btn {
    position: relative;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    outline: none;
}

.submit-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(231, 182, 35, 0.5), 0 8px 25px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading .submit-btn-text {
    opacity: 0;
}

.submit-btn.loading .submit-btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.error-message {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

.success-message {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.footer-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.phone-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.phone-link:hover,
.phone-link:focus-visible {
    color: #d4a017;
    text-decoration: underline;
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .floating-shape { display: none; }
}

/* Dark mode */
body.dark-mode { color-scheme: dark; }
body:not(.dark-mode) { color-scheme: light; }

@media (prefers-color-scheme: dark) {
    body:not(.dark-mode):not(.light-mode) .container {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    body:not(.dark-mode):not(.light-mode) .input-group label { color: rgba(255, 255, 255, 0.9); }
    body:not(.dark-mode):not(.light-mode) input[type="text"],
    body:not(.dark-mode):not(.light-mode) input[type="password"] {
        background: rgba(50, 50, 50, 0.9);
        color: white;
    }
    body:not(.dark-mode):not(.light-mode) input[type="text"]:focus,
    body:not(.dark-mode):not(.light-mode) input[type="password"]:focus { background: rgba(60, 60, 60, 1); }
    body:not(.dark-mode):not(.light-mode) .custom-checkbox {
        background: rgba(50, 50, 50, 0.9);
        border-color: rgba(255, 255, 255, 0.3);
    }
    body:not(.dark-mode):not(.light-mode) .checkbox-container label { color: rgba(255, 255, 255, 0.8); }
    body:not(.dark-mode):not(.light-mode) .password-toggle { color: rgba(255, 255, 255, 0.7); }
}

body.dark-mode .container {
    background: rgba(30, 30, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.dark-mode .input-group label { color: rgba(255, 255, 255, 0.9) !important; }
body.dark-mode input[type="text"],
body.dark-mode input[type="password"] {
    background: rgba(50, 50, 50, 0.9) !important;
    color: white !important;
}
body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="password"]:focus { background: rgba(60, 60, 60, 1) !important; }
body.dark-mode .custom-checkbox {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}
body.dark-mode .checkbox-container label { color: rgba(255, 255, 255, 0.8) !important; }
body.dark-mode .welcome-text { color: var(--gold) !important; }
body.dark-mode h1 {
    background: var(--primary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
body.dark-mode .subtitle,
body.dark-mode .footer-info { color: rgba(255, 255, 255, 0.7) !important; }
body.dark-mode .password-toggle { color: rgba(255, 255, 255, 0.7) !important; }
body.dark-mode .password-toggle:hover,
body.dark-mode .password-toggle:focus-visible { background: rgba(255, 255, 255, 0.1) !important; }

body.light-mode .container {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
body.light-mode .input-group label { color: var(--text-primary) !important; }
body.light-mode input[type="text"],
body.light-mode input[type="password"] {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}
body.light-mode input[type="text"]:focus,
body.light-mode input[type="password"]:focus { background: rgba(255, 255, 255, 1) !important; }
body.light-mode .custom-checkbox {
    background: white;
    border-color: var(--text-secondary);
}
body.light-mode .checkbox-container label { color: var(--text-secondary) !important; }
body.light-mode .welcome-text { color: var(--gold) !important; }
body.light-mode h1 {
    background: var(--primary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
body.light-mode .subtitle,
body.light-mode .footer-info { color: var(--text-secondary) !important; }

/* Responsive */
@media (max-width: 768px) {
    .bg-container { padding: 1rem; }
    .container { padding: 2rem; max-width: 100%; margin: 0 1rem; }
    .language-switch { top: 15px; right: 15px; }
    .theme-toggle { top: 15px; left: 15px; }
    .lang-btn { padding: 6px 10px; font-size: 0.8rem; }
    h1 { font-size: 1.5rem; }
    .floating-shape { display: none; }
    input[type="text"], input[type="password"] {
        padding: 0.875rem;
        font-size: 16px; /* Empêche le zoom iOS */
    }
    .submit-btn { padding: 0.875rem 1.5rem; font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 1.5rem; border-radius: 16px; }
    .logo { max-width: 100px; }
    h1 { font-size: 1.3rem; }
    .subtitle { font-size: 0.85rem; }
    input[type="text"], input[type="password"] { padding: 0.75rem; }
    .submit-btn { padding: 0.75rem 1.25rem; }
}

/* ===== État coché — placé en fin de fichier pour gagner sur source-order ===== */
input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--primary-gradient);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(231, 182, 35, 0.25);
    transform: scale(1.05);
}

input[type="checkbox"]:checked + .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Bouton "Se connecter" désactivé tant que la case n'est pas cochée :
   filet de sécurité empêchant tout bypass de validation côté UI */
.submit-btn:disabled,
.submit-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.4);
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn:disabled:hover::before,
.submit-btn[aria-disabled="true"]:hover::before {
    left: -100%;
}
