
/* =========================================================
   FASHION PROFIL
   CONNEXION - PREMIUM SMARTPHONE
   ========================================================= */

:root {
    --black: #050505;
    --black-soft: #0b0b0b;
    --black-card: #111111;

    --gold: #d4af37;
    --gold-light: #f0d875;
    --gold-dark: #8f7420;

    --white: #ffffff;
    --gray: #b8b8b8;
    --gray-dark: #707070;

    --danger: #ff5c5c;
    --success: #63d39b;

    --border: rgba(212, 175, 55, 0.22);
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100svh;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(212, 175, 55, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(212, 175, 55, 0.08),
            transparent 30%
        ),
        #020202;

    color: var(--white);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.page-background {
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    padding: 45px 20px;

    overflow: hidden;
}

.page-background::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.015) 45%,
            transparent 50%
        );

    pointer-events: none;
}

.glow {
    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background: rgba(212, 175, 55, 0.07);

    filter: blur(90px);

    pointer-events: none;

    animation: glowFloat 8s ease-in-out infinite;
}

.glow-one {
    top: -180px;
    left: -180px;
}

.glow-two {
    right: -180px;
    bottom: -180px;

    animation-delay: -4s;
}

@keyframes glowFloat {
    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }

    50% {
        transform: translate(30px, -25px);
        opacity: 1;
    }
}

/* =========================================================
   SMARTPHONE FRAME
   ========================================================= */

.phone-frame {
    width: 100%;
    max-width: 430px;

    position: relative;

    padding: 11px;

    border-radius: 52px;

    background:
        linear-gradient(
            145deg,
            #292929,
            #080808 30%,
            #181818 70%,
            #050505
        );

    border: 1px solid rgba(255, 255, 255, 0.13);

    box-shadow:
        0 45px 100px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(212, 175, 55, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);

    animation:
        phoneAppear 0.9s
        cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-frame::before {
    content: "";

    position: absolute;
    inset: 4px;

    border-radius: 48px;

    border: 1px solid rgba(255, 255, 255, 0.05);

    pointer-events: none;
}

@keyframes phoneAppear {
    from {
        opacity: 0;
        transform:
            translateY(35px)
            scale(0.96);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

/* =========================================================
   PHONE TOP
   ========================================================= */

.phone-top {
    height: 22px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}

.phone-speaker {
    width: 58px;
    height: 5px;

    border-radius: 10px;

    background: #030303;

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.8);
}

.phone-camera {
    width: 7px;
    height: 7px;

    position: absolute;
    left: calc(50% + 42px);

    border-radius: 50%;

    background: #0c0c0c;

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        inset 0 0 0 2px #050505,
        0 0 7px rgba(212, 175, 55, 0.15);
}

/* =========================================================
   PHONE SCREEN
   ========================================================= */

.phone-screen {
    position: relative;

    overflow: hidden;

    padding: 28px 25px 25px;

    border-radius: 40px;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(212, 175, 55, 0.08),
            transparent 30%
        ),
        linear-gradient(
            160deg,
            #111111,
            #070707 55%,
            #0c0c0c
        );

    border: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -30px 80px rgba(0, 0, 0, 0.3);
}

.phone-screen::after {
    content: "";

    position: absolute;

    top: -100px;
    left: -80px;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background: rgba(212, 175, 55, 0.035);

    filter: blur(45px);

    pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.auth-header {
    position: relative;

    z-index: 2;

    text-align: center;

    margin-bottom: 29px;
}

.logo {
    display: inline-flex;

    flex-direction: column;

    text-decoration: none;

    line-height: 1;

    letter-spacing: 4px;
}

.logo span {
    color: var(--white);

    font-size: 14px;

    font-weight: 300;

    letter-spacing: 5px;
}

.logo strong {
    margin-top: 5px;

    color: var(--gold);

    font-size: 22px;

    font-weight: 800;

    letter-spacing: 5px;

    text-shadow:
        0 0 18px rgba(212, 175, 55, 0.18);
}

.auth-subtitle {
    margin-top: 10px;

    color: var(--gray-dark);

    font-size: 10px;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}

/* =========================================================
   FORM HEADING
   ========================================================= */

.form-heading {
    position: relative;

    z-index: 2;

    margin-bottom: 23px;
}

.gold-line {
    display: block;

    width: 34px;
    height: 2px;

    margin-bottom: 12px;

    background: var(--gold);

    box-shadow:
        0 0 12px rgba(212, 175, 55, 0.45);
}

.form-heading h1 {
    color: var(--white);

    font-size: 25px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.6px;
}

.form-heading p {
    margin-top: 7px;

    color: var(--gray);

    font-size: 13px;
}

/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    position: relative;

    z-index: 3;

    display: flex;

    gap: 11px;

    margin-bottom: 18px;

    padding: 12px;

    border-radius: 13px;

    font-size: 11px;

    line-height: 1.45;

    animation:
        alertAppear 0.35s ease;
}

@keyframes alertAppear {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-icon {
    width: 21px;
    height: 21px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-weight: 800;
}

.alert-error {
    color: #ffd1d1;

    background: rgba(255, 70, 70, 0.07);

    border: 1px solid rgba(255, 70, 70, 0.18);
}

.alert-error .alert-icon {
    color: var(--danger);

    background: rgba(255, 70, 70, 0.13);
}

.alert-success {
    color: #c8f5df;

    background: rgba(99, 211, 155, 0.07);

    border: 1px solid rgba(99, 211, 155, 0.18);
}

.alert-success .alert-icon {
    color: var(--success);

    background: rgba(99, 211, 155, 0.12);
}

.alert strong {
    display: block;

    margin-bottom: 2px;

    color: var(--white);

    font-size: 11px;
}

.alert p {
    margin: 0;
}

/* =========================================================
   FORM
   ========================================================= */

.login-form {
    position: relative;

    z-index: 2;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #eeeeee;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.3px;
}

/* =========================================================
   INPUT
   ========================================================= */

.input-box,
.phone-input {
    min-height: 48px;

    display: flex;
    align-items: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 7px 20px rgba(0, 0, 0, 0.18);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.input-box:focus-within,
.phone-input:focus-within {
    border-color:
        rgba(212, 175, 55, 0.65);

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.07),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.06),
        0 8px 25px rgba(0, 0, 0, 0.25);

    transform: translateY(-1px);
}

.input-icon {
    width: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);

    font-size: 13px;

    opacity: 0.8;
}

.input-box select,
.input-box input,
.phone-input input {
    width: 100%;

    height: 46px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--white);

    font-family: inherit;

    font-size: 13px;
}

.input-box input::placeholder,
.phone-input input::placeholder {
    color: #696969;
}

/* =========================================================
   SELECT
   ========================================================= */

.input-box select {
    cursor: pointer;

    appearance: none;

    padding-right: 35px;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #777 50%
        ),
        linear-gradient(
            135deg,
            #777 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 17px) 20px,
        calc(100% - 12px) 20px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

.input-box select option {
    color: #111111;

    background: #ffffff;
}

/* =========================================================
   PHONE
   ========================================================= */

.phone-input {
    padding-left: 5px;
}

.dial-code {
    min-width: 67px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 3px;

    border-radius: 10px;

    color: var(--gold);

    background: rgba(212, 175, 55, 0.08);

    border: 1px solid rgba(212, 175, 55, 0.15);

    font-size: 12px;

    font-weight: 700;
}

.phone-input input {
    padding: 0 12px;
}

.field-help {
    display: block;

    margin-top: 6px;

    color: #666666;

    font-size: 9.5px;

    line-height: 1.4;
}

/* =========================================================
   PASSWORD
   ========================================================= */

.password-box {
    padding-right: 5px;
}

.password-toggle {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 10px;

    color: #858585;

    background: transparent;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.password-toggle:hover {
    color: var(--gold);

    background:
        rgba(212, 175, 55, 0.07);
}

/* =========================================================
   LOGIN OPTIONS
   ========================================================= */

.login-options {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    margin: 2px 0 19px;
}

.remember-label {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #777777;

    font-size: 10px;

    cursor: pointer;
}

.remember-label input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.remember-box {
    width: 16px;
    height: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid #444444;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.remember-label input:checked + .remember-box {
    background: var(--gold);

    border-color: var(--gold);

    box-shadow:
        0 0 12px rgba(212, 175, 55, 0.25);
}

.remember-label input:checked + .remember-box::after {
    content: "✓";

    color: #050505;

    font-size: 10px;

    font-weight: 900;
}

/* =========================================================
   SUBMIT
   ========================================================= */

.submit-button {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    position: relative;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #e4c04c,
            #c49b22 48%,
            #e0bb42
        );

    color: #090909;

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(212, 175, 55, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.submit-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    transform: skewX(-20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.28),
            transparent
        );

    transition:
        left 0.7s ease;
}

.submit-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 38px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    filter: brightness(1.06);
}

.submit-button:hover::before {
    left: 140%;
}

.submit-button:active {
    transform: translateY(0) scale(0.985);
}

.button-arrow {
    font-size: 17px;

    transition:
        transform 0.25s ease;
}

.submit-button:hover .button-arrow {
    transform: translateX(4px);
}

/* =========================================================
   AUTH SWITCH
   ========================================================= */

.auth-switch {
    position: relative;

    z-index: 2;

    margin-top: 23px;

    text-align: center;

    color: #666666;

    font-size: 10px;

    line-height: 1.5;
}

.auth-switch a {
    display: inline-block;

    margin-left: 4px;

    color: var(--gold);

    text-decoration: none;

    font-weight: 700;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.auth-switch a:hover {
    color: var(--gold-light);

    text-shadow:
        0 0 12px rgba(212, 175, 55, 0.3);
}

/* =========================================================
   BACK HOME
   ========================================================= */

.back-home {
    display: block;

    position: relative;

    z-index: 2;

    margin-top: 18px;

    color: #555555;

    text-align: center;

    font-size: 9px;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.back-home:hover {
    color: var(--gray);
}

/* =========================================================
   PHONE BOTTOM
   ========================================================= */

.phone-bottom {
    height: 25px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.home-indicator {
    width: 78px;
    height: 4px;

    border-radius: 20px;

    background: #292929;

    box-shadow:
        0 1px 2px rgba(255, 255, 255, 0.08);
}

/* =========================================================
   ERREUR INPUT
   ========================================================= */

.input-error {
    border-color:
        rgba(255, 92, 92, 0.55) !important;

    box-shadow:
        0 0 0 3px rgba(255, 92, 92, 0.05) !important;
}

/* =========================================================
   LOADING
   ========================================================= */

.submit-button.loading {
    pointer-events: none;

    opacity: 0.75;
}

.submit-button.loading span:first-child {
    font-size: 0;
}

.submit-button.loading span:first-child::after {
    content: "CONNEXION...";

    font-size: 10px;
}

/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 600px) {

    .page-background {
        padding: 20px 12px;
    }

    .phone-frame {
        max-width: 430px;

        padding: 8px;

        border-radius: 43px;
    }

    .phone-screen {
        padding: 25px 21px 23px;

        border-radius: 34px;
    }

    .phone-top {
        height: 18px;
    }

    .phone-bottom {
        height: 20px;
    }
}

/* =========================================================
   PETITS TÉLÉPHONES
   ========================================================= */

@media (max-width: 390px) {

    .page-background {
        padding: 8px;
    }

    .phone-frame {
        padding: 6px;

        border-radius: 35px;
    }

    .phone-screen {
        padding: 22px 17px 20px;

        border-radius: 29px;
    }

    .auth-header {
        margin-bottom: 22px;
    }

    .logo strong {
        font-size: 19px;
    }

    .form-heading h1 {
        font-size: 22px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .input-box,
    .phone-input {
        min-height: 45px;
    }

    .input-box input,
    .input-box select,
    .phone-input input {
        height: 43px;

        font-size: 12px;
    }

    .submit-button {
        height: 47px;
    }
}

/* =========================================================
   PETITE HAUTEUR D'ÉCRAN
   ========================================================= */

@media (max-height: 760px) and (min-width: 500px) {

    .page-background {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .phone-screen {
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .auth-header {
        margin-bottom: 18px;
    }

    .form-group {
        margin-bottom: 11px;
    }

    .login-options {
        margin-bottom: 13px;
    }

    .auth-switch {
        margin-top: 14px;
    }

    .back-home {
        margin-top: 10px;
    }
}

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);

    outline-offset: 3px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@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;
    }
}

