* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.verification-page {
    margin: 0;
    min-height: 100vh;
    padding: 120px 32px 64px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(116, 31, 50, 0.34), transparent 55%),
        #111114;
    color: #f5f5f6;
    font-family: "Onest", Arial, sans-serif;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    padding: 120px 32px 64px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(116, 31, 50, 0.34), transparent 55%),
        #111114;
    color: #f5f5f6;
    font-family: "Onest", Arial, sans-serif;
}

body.age-verification-page {
    display: block;
    min-height: 100vh;
    margin: 0;
    padding: 120px 32px 56px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(116, 31, 50, 0.34), transparent 55%),
        #111114;
    color: #f5f5f6;
    font-family: "Onest", Arial, sans-serif;
}

body.age-verification-page.femme-bg {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(116, 31, 50, 0.38), transparent 55%),
        #111114;
}

body.age-verification-page.homme-bg {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(31, 76, 116, 0.34), transparent 55%),
        #111114;
}

body.age-verification-page.autres-bg {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(87, 45, 116, 0.34), transparent 55%),
        #111114;
}

.top-logo {
    position: absolute;
    top: 28px;
    left: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.top-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.top-logo span {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.verification-content {
    width: min(100%, 720px);
    margin: 0 auto;
    animation: verification-enter 0.4s ease-out both;
}

.auth-content {
    width: min(100%, 640px);
    margin: 0 auto;
    animation: verification-enter 0.4s ease-out both;
}

.age-content {
    width: min(100%, 900px);
    margin: 0 auto;
    text-align: center;
    animation: verification-enter 0.4s ease-out both;
}

.verification-header {
    margin-bottom: 34px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #ef8998;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1,
.age-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 600;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

.auth-eyebrow {
    margin: 0 0 12px;
    color: #ef8998;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.auth-intro {
    max-width: 600px;
    margin: 14px 0 0;
    color: #a9a9b0;
    font-size: 15px;
    line-height: 1.7;
}

.age-header {
    margin-bottom: 28px;
}

.age-header .age-slogan {
    margin: 14px 0 0;
    color: #a9a9b0;
    font-size: 15px;
    line-height: 1.6;
}

.verification-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 600;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

.auth-content .alert,
.age-content .alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-content .alert-error,
.age-content .alert-error {
    border: 1px solid rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.2);
    color: #fecaca;
}

.auth-content .alert-success,
.age-content .alert-success {
    border: 1px solid rgba(74, 222, 128, 0.25);
    background: rgba(20, 83, 45, 0.22);
    color: #bbf7d0;
}

.auth-content .alert-warning {
    border: 1px solid rgba(250, 204, 21, 0.25);
    background: rgba(113, 63, 18, 0.2);
    color: #fde68a;
}

.auth-content .alert-info {
    border: 1px solid rgba(96, 165, 250, 0.25);
    background: rgba(30, 58, 138, 0.2);
    color: #bfdbfe;
}

.auth-content .alert i,
.age-content .alert i {
    flex: 0 0 auto;
}

.auth-form {
    max-width: 540px;
}

.oauth-buttons {
    display: flex;
    gap: 12px;
    max-width: 540px;
    margin: 0 0 22px;
}

.auth-content .btn-oauth {
    display: flex;
    min-height: 48px;
    flex: 1;
    align-items: center;
    justify-content: center;
    border: 1px solid #414149;
    border-radius: 5px;
    background: #19191e;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.auth-content .btn-oauth:hover {
    border-color: #777780;
    background: #222228;
}

.auth-content .btn-oauth img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.auth-content .divider {
    display: flex;
    max-width: 540px;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    color: #85858e;
    font-size: 13px;
}

.auth-content .divider::before,
.auth-content .divider::after {
    height: 1px;
    flex: 1;
    background: #303037;
    content: "";
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 9px;
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 500;
}

.auth-form .required-star {
    color: #ef8998;
}

.auth-form .input-wrapper {
    position: relative;
}

.auth-form .input-wrapper input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 13px 46px 13px 15px;
    border: 1px solid #414149;
    border-radius: 5px;
    outline: none;
    background: #19191e;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: normal;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-form .input-wrapper input[type="password"] {
    padding-right: 46px;
}

.auth-form .input-wrapper input::placeholder {
    color: #696972;
}

.auth-form .input-wrapper input:focus {
    border-color: #e63956;
    box-shadow: 0 0 0 3px rgba(230, 57, 86, 0.14);
}

.auth-form .input-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #777780;
    pointer-events: none;
    transform: translateY(-50%);
}

.auth-form .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 30px;
    height: 32px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #a9a9b0;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-form .toggle-password:hover {
    color: #fff;
}

.auth-form .forgot-link {
    margin: -6px 0 20px;
    text-align: right;
}

.auth-form .forgot-link a,
.auth-footer a,
.forgot-footer a {
    color: #f08a99;
    font-size: 13px;
    text-decoration: none;
}

.auth-form .forgot-link a:hover,
.auth-footer a:hover,
.forgot-footer a:hover {
    color: #ffb0bb;
}

.auth-form .verify-button,
.auth-form .btn-submit {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 0;
    border-radius: 5px;
    background: #e63956;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.18s ease, transform 0.18s ease;
    width: min(100%, 540px);
}

.auth-form .btn-submit:hover {
    transform: translateY(-1px);
    background: #cf2e49;
}

.auth-form .btn-submit:focus-visible {
    outline: 2px solid #f3a0ac;
    outline-offset: 4px;
}

.auth-footer {
    max-width: 540px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #303037;
    color: #9999a2;
    font-size: 14px;
}

.auth-footer p {
    margin: 0;
}

.auth-content.username-container {
    max-width: 640px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    animation: verification-enter 0.4s ease-out both;
    text-align: left;
}

.username-container .username-header {
    margin-bottom: 30px;
    text-align: left;
}

.username-container .page-title {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 600;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

.username-container .page-subtitle {
    margin-top: 14px;
    color: #a9a9b0;
    font-size: 15px;
    line-height: 1.7;
}

.username-container .provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 10px;
    border: 1px solid #414149;
    border-radius: 4px;
    background: #19191e;
    color: #c3c3ca;
    font-size: 12px;
}

.username-container .provider-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.username-container .input-wrapper input {
    padding-right: 52px;
    padding-left: 44px;
}

.username-container .input-icon {
    right: auto;
    left: 15px;
}

.username-container .availability-indicator {
    position: absolute;
    top: 50%;
    right: 15px;
    pointer-events: none;
    transform: translateY(-50%);
}

.username-container .field-hint {
    margin: 9px 0 0;
    color: #85858e;
    font-size: 13px;
    line-height: 1.6;
}

.username-container .btn-submit {
    margin-top: 4px;
}

.username-container .btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.username-container .username-footer {
    max-width: 540px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #303037;
    text-align: left;
}

.username-container .cancel-link {
    color: #f08a99;
    font-size: 13px;
    text-decoration: none;
}

.username-container .cancel-link:hover {
    color: #ffb0bb;
}

.consent-group {
    margin: 4px 0 22px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #a9a9b0;
    font-size: 13px;
    line-height: 1.6;
}

.consent-label input {
    flex: 0 0 auto;
    margin: 3px 0 0;
    accent-color: #e63956;
}

.consent-label a {
    color: #f08a99;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.forgot-footer {
    max-width: 540px;
    margin-top: 28px;
    color: #9999a2;
    text-align: left;
}

.forgot-footer .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.forgot-footer .footer-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #696972;
    font-size: 12px;
}

.forgot-footer .footer-divider::before,
.forgot-footer .footer-divider::after {
    height: 1px;
    flex: 1;
    background: #303037;
    content: "";
}

.forgot-footer .footer-secondary {
    margin: 16px 0 0;
    font-size: 13px;
}

.forgot-footer .footer-secondary a {
    margin-left: 5px;
}

.auth-form .reset-code-input {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid #414149;
    border-radius: 5px;
    outline: none;
    background: #19191e;
    color: #fff;
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .45em;
    text-align: center;
}

.auth-form .reset-code-input:focus {
    border-color: #e63956;
    box-shadow: 0 0 0 3px rgba(230, 57, 86, .14);
}

.auth-form .password-strength {
    height: 4px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #303037;
}

.auth-form .password-strength-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #e63956;
    transition: width .2s ease;
}

.auth-form .password-hint {
    display: block;
    margin-top: 7px;
    color: #9999a2;
    font-size: 12px;
}

.age-content .container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    animation: none;
}

.age-content .subtext {
    margin: 26px 0 14px;
    color: #a9a9b0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.age-content .choices {
    margin: 0 0 24px;
}

.age-content .choice {
    border-radius: 7px;
}

.age-content .dob-section {
    max-width: 460px;
    margin: 24px auto 18px;
}

.age-content .warning-section {
    max-width: 620px;
    margin: 24px auto 18px;
    padding-top: 16px;
    border-top: 1px solid #303037;
}

.age-content .dob-label {
    color: #e4e4e7;
}

.age-content .remember-me {
    max-width: 460px;
    margin: 18px auto;
    color: #a9a9b0;
}

.age-content .age-btn {
    display: inline-flex;
    min-width: 0;
    min-height: 50px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 12px 18px;
    border-radius: 5px;
    background: #e63956;
    color: #fff;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}

.age-content .age-btn:hover {
    background: #cf2e49;
    box-shadow: none;
}

.age-content .age-actions {
    display: flex;
    width: min(100%, 620px);
    gap: 12px;
    margin: 0 auto 8px;
}

.age-content .exit-link {
    display: inline-flex;
    min-height: 50px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid #414149;
    border-radius: 5px;
    color: #c3c3ca;
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.age-content .exit-link:hover {
    border-color: #777780;
    background: #19191e;
}

.age-content .age-actions :focus-visible {
    outline: 2px solid #f3a0ac;
    outline-offset: 4px;
}

.age-content .warning-title {
    color: #ef8998;
}

.age-content .warning-text {
    color: #9999a2;
}

.age-content .exit-link:hover {
    color: #fff;
}

.intro {
    max-width: 620px;
    margin: 16px 0 0;
    color: #a9a9b0;
    font-size: 16px;
    line-height: 1.7;
}

.intro strong {
    color: #ededf0;
    font-weight: 600;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    border: 1px solid rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.2);
    color: #fecaca;
}

.alert-success {
    border: 1px solid rgba(74, 222, 128, 0.25);
    background: rgba(20, 83, 45, 0.22);
    color: #bbf7d0;
}

.alert i {
    flex: 0 0 auto;
}

#codeForm {
    max-width: 520px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 500;
}

.form-group label span {
    color: #ef8998;
}

.form-group input {
    display: block;
    width: 100%;
    min-height: 66px;
    padding: 12px 18px;
    border: 1px solid #414149;
    border-radius: 6px;
    outline: none;
    background: #19191e;
    color: #fff;
    font-family: "Onest", Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 12px;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-group input::placeholder {
    color: #55555e;
    opacity: 1;
}

.form-group input:focus {
    border-color: #e63956;
    box-shadow: 0 0 0 3px rgba(230, 57, 86, 0.14);
}

.form-group small {
    display: block;
    margin-top: 9px;
    color: #85858e;
    font-size: 13px;
}

.verify-button {
    display: inline-flex;
    min-width: 210px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 0;
    border-radius: 5px;
    background: #e63956;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.verify-button:hover {
    transform: translateY(-1px);
    background: #cf2e49;
}

.verify-button:focus-visible,
.resend-button:focus-visible,
.restart-link a:focus-visible {
    outline: 2px solid #f3a0ac;
    outline-offset: 4px;
}

.resend-form {
    margin-top: 28px;
}

.resend-button {
    padding: 0;
    border: 0;
    background: none;
    color: #9999a2;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
}

.resend-button span {
    margin-left: 4px;
    color: #f08a99;
    font-weight: 600;
}

.resend-button:hover span,
.restart-link a:hover {
    color: #ffb0bb;
}

.restart-link {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid #303037;
}

.restart-link a {
    color: #9a9aa3;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.18s ease;
}

.restart-link i {
    margin-right: 7px;
}

@keyframes verification-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {

    body.verification-page,
    body.auth-page {
        padding: 104px 22px 40px;
    }

    body.age-verification-page {
        padding: 104px 22px 36px;
    }

    .top-logo {
        top: 24px;
        left: 22px;
    }

    .verification-header {
        margin-bottom: 28px;
    }

    .auth-header {
        margin-bottom: 28px;
    }

    .age-content .choices {
        grid-template-columns: repeat(2, 1fr);
    }

    .age-content .choice {
        min-height: 100px;
        padding: 14px 8px;
    }

    .age-content .dob-inputs {
        gap: 16px;
    }

    .age-content .age-actions {
        gap: 8px;
    }

    .age-content .age-btn,
    .age-content .exit-link {
        min-height: 48px;
        gap: 6px;
        padding: 10px 8px;
        font-size: 12px;
    }

    .intro {
        font-size: 15px;
    }

    .form-group input {
        min-height: 60px;
        font-size: 25px;
        letter-spacing: 10px;
    }

    .verify-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
