
/* =========================================
   OXQ - LOGIN RESPONSIVE PC + MOBILE
========================================= */

#content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: calc(100vh - 130px);
}

#container {
    width: 100%;
}

/* =========================================
   PC : DESIGN PRINCIPAL
========================================= */

.login-wrapper {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 24px;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(32,107,196,.08), transparent 40%),
        #f5f8fc;
}

.login-layout {
    width: 100%;
    max-width: 980px;
    min-height: 570px;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15,23,42,.10);
}

/* Panneau gauche */

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(56,189,248,.28), transparent 35%),
        linear-gradient(145deg,#0f172a 0%,#172f55 55%,#206bc4 100%);
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    pointer-events: none;
}

.login-brand-panel::before {
    width: 360px;
    height: 360px;
    right: -180px;
    bottom: -110px;
}

.login-brand-panel::after {
    width: 240px;
    height: 240px;
    right: -120px;
    bottom: -50px;
}

.login-brand-content,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.login-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 70px;
}

.login-logo-symbol {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 25px;
    font-weight: 800;
}

.login-logo-name {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.login-brand-panel h2 {
    max-width: 340px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px,3.5vw,42px);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.login-brand-panel h2 span {
    color: #7dd3fc;
}

.login-brand-description {
    max-width: 330px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}

.login-feature-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: 38px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 13px;
}

.login-feature-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255,255,255,.12);
    color: #7dd3fc;
}

.login-brand-footer {
    color: #94a3b8;
    font-size: 11px;
}

/* Panneau formulaire */

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 54px;
}

.login-form-content {
    width: 100%;
    max-width: 370px;
}

.login-heading {
    margin-bottom: 30px;
}

.login-heading h1 {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.login-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Modes */

.login-mode-switch {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 5px;
    padding: 5px;
    margin-bottom: 26px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.login-mode-btn {
    min-width: 0;
    padding: 10px 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.login-mode-btn:hover {
    color: #206bc4;
}

.login-mode-btn.is-active {
    background: #fff;
    color: #206bc4;
    box-shadow: 0 1px 4px rgba(15,23,42,.10);
}

/* Champs */

.login-form-group {
    margin-bottom: 21px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.login-label-hint {
    margin-left: 5px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
}

.login-input-wrapper {
    position: relative;
}

.login-input {
    width: 100% !important;
    height: 48px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color .2s,box-shadow .2s !important;
}

.login-input::placeholder {
    color: #a0aec0;
}

.login-input:hover {
    border-color: #94a3b8 !important;
}

.login-input:focus {
    border-color: #206bc4 !important;
    box-shadow: 0 0 0 4px rgba(32,107,196,.11) !important;
}

/* Mot de passe */

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.login-password-toggle:hover {
    color: #206bc4;
}

/* Aide */

.login-help {
    display: none;
    margin-top: 8px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

/* Bouton */

.login-btn-submit {
    width: 100% !important;
    height: 49px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 28px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #206bc4 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 5px 14px rgba(32,107,196,.22) !important;
    transition: all .2s ease !important;
}

.login-btn-submit:hover {
    background: #1859a5 !important;
    box-shadow: 0 7px 18px rgba(32,107,196,.28) !important;
    transform: translateY(-1px);
}

.login-btn-submit:active {
    transform: translateY(0);
}

/* Inscription */

.login-signup {
    margin-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.login-signup a {
    color: #206bc4;
    font-weight: 700;
    text-decoration: none;
}

.login-signup a:hover {
    text-decoration: underline;
}

/* Erreur */

.login-alert-danger {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
}

/* =========================================
   MOBILE : DESIGN COMPACT
========================================= */

@media (max-width: 760px) {

    #content {
        min-height: 100vh;
    }

    .login-wrapper {
        min-height: 100vh;
        box-sizing: border-box;
        padding: 24px 14px 35px;
        align-items: flex-start;
        background:
            radial-gradient(ellipse at 15% 10%,rgba(32,107,196,.10),transparent 45%),
            #f5f8fc;
    }

    .login-layout {
        width: 100%;
        max-width: 460px;
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 17px;
    }

    .login-brand-panel {
        min-height: 190px;
        padding: 24px;
        justify-content: flex-start;
    }

    .login-brand-logo {
        margin-bottom: 25px;
    }

    .login-logo-symbol {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .login-logo-name {
        font-size: 21px;
    }

    .login-brand-panel h2 {
        max-width: 100%;
        margin-bottom: 10px;
        font-size: 27px;
    }

    .login-brand-description {
        max-width: 100%;
        margin-bottom: 0;
        font-size: 13px;
        line-height: 1.6;
    }

    .login-feature-list,
    .login-brand-footer {
        display: none;
    }

    .login-form-panel {
        padding: 32px 24px 35px;
    }

    .login-form-content {
        max-width: none;
    }

    .login-heading {
        margin-bottom: 25px;
    }

    .login-heading h1 {
        font-size: 24px;
    }

    .login-mode-switch {
        margin-bottom: 23px;
    }

    .login-mode-btn {
        padding: 11px 4px;
        font-size: 12px;
    }

    .login-input {
        height: 52px !important;
        font-size: 16px !important;
    }

    .login-btn-submit {
        height: 52px !important;
    }
}

/* Petits téléphones */

@media (max-width: 360px) {

    .login-mode-btn {
        font-size: 11px;
    }

    .login-form-panel {
        padding-right: 17px;
        padding-left: 17px;
    }

    .login-brand-panel {
        padding: 20px;
    }
}
