/* ============================================================
   UPEAC ADMISSIONS
   PUBLIC REGISTER
============================================================ */


/* ============================================================
   PAGE
============================================================ */

.public-app-public_register {
    background: #eef2f7;
}


.public-app-public_register .public-main {
    flex: 1;
    display: flex;
    min-height: 0;
}


.register-page {
    width: 100%;
    flex: 1;

    min-height: calc(100vh - 174px);

    display: flex;

    background:
        linear-gradient(
            180deg,
            #dce9f6 0%,
            #eef2f6 100%
        );
}


/* ============================================================
   STRUCTURE PRINCIPALE
============================================================ */

.register-layout {
    width: 100%;
    min-height: calc(100vh - 174px);

    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(620px, 0.94fr);
}


/* ============================================================
   PARTIE GAUCHE
============================================================ */

============================================================ */

.register-showcase {
    position: relative;

    min-height: 100%;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 28px 72px 28px;

    background: #dfe3e8;

    isolation: isolate;
}


/* ============================================================
   OVERLAY
============================================================ */

   IMAGE DU BATIMENT EN FILIGRANE
============================================================ */

.register-showcase::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        url("../../assets/images/upeac-building.png");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    opacity: 0.22;

    z-index: -2;

    filter: grayscale(25%);

    transform: scale(1.02);
}


/* ============================================================
   VOILE GRIS AU-DESSUS DE L'IMAGE
============================================================ */

.register-showcase-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(230, 233, 237, 0.82) 0%,
            rgba(220, 224, 229, 0.78) 45%,
            rgba(202, 208, 216, 0.82) 100%
        );

    z-index: -1;

    pointer-events: none;
}

/* ============================================================
   CONTENU SHOWCASE
============================================================ */

.register-showcase-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 560px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* ============================================================
   LOGO CENTRAL
============================================================ */

.register-showcase-logo {
    width: 126px;
    height: 126px;

    margin-top: 0;
    margin-bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.register-showcase-logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 18px rgba(13, 38, 70, 0.18)
        );
}


/* ============================================================
   KICKER
============================================================ */

.register-showcase-kicker {
    color: #d66c00;

    font-size: 17px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    margin-bottom: 4px;
}


/* ============================================================
   TITRE
============================================================ */

.register-showcase-title {
    margin: 0;

    color: #183761;

    font-size: clamp(34px, 3vw, 47px);
    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.6px;
}


.register-showcase-title span {
    display: block;
}


/* ============================================================
   DESCRIPTION
============================================================ */

.register-showcase-description {
    max-width: 520px;

    margin: 14px auto 8px;

    color: #1c3454;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.55;
}


/* ============================================================
   DIVIDER
============================================================ */

.register-showcase-divider {
    width: 100%;
    height: 18px;

    margin:
        0 0
        4px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.register-showcase-divider span {
    width: 74px;
    height: 2px;

    display: block;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            #ef7900 18%,
            #ef7900 82%,
            transparent 100%
        );
}


/* ============================================================
   ETAPES
============================================================ */

.register-steps {
    width: 100%;
    max-width: 500px;

    margin-top: 6px;

    display: flex;
    flex-direction: column;
    gap: 13px;

    text-align: left;
}


.register-step {
    display: flex;
    align-items: center;
    gap: 15px;

    color: #274363;
}


.register-step-number {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.62);

    background:
        rgba(24, 66, 109, 0.34);

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    box-shadow:
        0 4px 12px rgba(
            10,
            34,
            60,
            0.12
        );
}


.register-step.active .register-step-number {
    background: #1c4d80;

    border-color:
        rgba(255, 255, 255, 0.85);
}


.register-step-content {
    display: flex;
    flex-direction: column;
}


.register-step-content strong {
    color: #17375f;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.35;
}


.register-step-content span {
    margin-top: 1px;

    color: #435a74;

    font-size: 13px;

    line-height: 1.4;
}


/* ============================================================
   AVANTAGES
============================================================ */

.register-benefits {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 690px;

    margin:
        auto auto 0;

    min-height: 128px;

    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    background:
        linear-gradient(
            135deg,
            rgba(10, 38, 70, 0.94),
            rgba(17, 56, 98, 0.91)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 14px 34px rgba(
            9,
            31,
            55,
            0.24
        );

    backdrop-filter:
        blur(8px);
}


.register-benefit {
    position: relative;

    min-height: 128px;

    padding:
        17px 12px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    color: #ffffff;
}


.register-benefit:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 20px;
    right: 0;

    width: 1px;
    height: calc(100% - 40px);

    background:
        rgba(255, 255, 255, 0.18);
}


.register-benefit-icon {
    height: 32px;

    margin-bottom: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 25px;
}


.register-benefit strong {
    margin-bottom: 5px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}


.register-benefit span {
    color:
        rgba(255, 255, 255, 0.76);

    font-size: 11px;

    line-height: 1.45;
}


/* ============================================================
   PARTIE DROITE
============================================================ */

.register-form-area {
    position: relative;

    min-height: 100%;

    padding:
        24px 58px 28px 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(238, 242, 247, 0.88),
            rgba(221, 229, 238, 0.88)
        );
}


/* ============================================================
   CARTE FORMULAIRE
============================================================ */

.register-form-card {
    width: 100%;
    max-width: 690px;

    padding:
        34px 28px 28px;

    background:
        rgba(255, 255, 255, 0.94);

    border:
        1px solid
        rgba(211, 220, 231, 0.95);

    border-radius: 18px;

    box-shadow:
        0 22px 55px rgba(
            27,
            52,
            84,
            0.16
        );

    backdrop-filter:
        blur(12px);
}


/* ============================================================
   HEADER FORMULAIRE
============================================================ */

.register-form-header {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 20px;
}


.register-form-header-icon {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #f5f8fb,
            #e6edf5
        );

    border:
        1px solid #d5dee9;

    color: #1b3d6d;

    font-size: 30px;
}


.register-form-header-content h2 {
    margin: 0 0 5px;

    color: #203c67;

    font-size: 28px;
    font-weight: 800;

    line-height: 1.2;
}


.register-form-header-content p {
    margin: 0;

    max-width: 480px;

    color: #69778b;

    font-size: 14px;

    line-height: 1.55;
}


/* ============================================================
   ALERTES
============================================================ */

.register-alert {
    margin-bottom: 18px;

    padding: 13px 15px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 8px;

    font-size: 13px;
}


.register-alert-success {
    background: #ecf8f0;

    border:
        1px solid #b8e3c6;

    color: #17723a;
}


.register-alert-error {
    background: #fff0f1;

    border:
        1px solid #f2bec3;

    color: #b52c38;
}


/* ============================================================
   FORM
============================================================ */

.register-form {
    width: 100%;
}


.register-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 20px;
    row-gap: 12px;
}


/* ============================================================
   CHAMP
============================================================ */

.register-field {
    min-width: 0;
}


.register-field > label {
    display: block;

    margin-bottom: 6px;

    color: #34445b;

    font-size: 12px;
    font-weight: 600;
}


.register-field > label > span {
    color: #d93737;
}


/* ============================================================
   INPUT WRAPPER
============================================================ */

.register-input-wrapper {
    position: relative;

    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border:
        1px solid #ccd6e2;

    border-radius: 9px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.register-input-wrapper > i {
    position: absolute;

    left: 14px;

    color: #48607e;

    font-size: 16px;

    pointer-events: none;
}


.register-input-wrapper:focus-within {
    border-color: #2f6299;

    box-shadow:
        0 0 0 3px
        rgba(47, 98, 153, 0.1);
}


.register-input-wrapper.has-error {
    border-color: #dc4a55;
}


/* ============================================================
   INPUTS
============================================================ */

.register-input-wrapper input,
.register-input-wrapper select {
    width: 100%;
    height: 100%;

    padding:
        0 42px 0 44px;

    border: 0;
    outline: none;

    background: transparent;

    color: #2c3f58;

    font-family: inherit;
    font-size: 14px;
}


.register-input-wrapper input::placeholder {
    color: #8a97a8;

    opacity: 1;
}


.register-input-wrapper input[type="date"] {
    color: #66768b;
}


/* ============================================================
   SELECT
============================================================ */

.register-select-wrapper select {
    appearance: none;

    -webkit-appearance: none;

    cursor: pointer;

    padding-right: 42px;
}


.register-select-wrapper::after {
    content: "\f078";

    position: absolute;

    right: 15px;

    font-family:
        "Font Awesome 6 Free";

    font-weight: 900;

    color: #314d70;

    font-size: 11px;

    pointer-events: none;
}


/* ============================================================
   SEXE
============================================================ */

.register-gender-group {
    height: 46px;

    display: flex;
    align-items: center;

    gap: 28px;
}


.register-radio {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    cursor: pointer;

    color: #45566d;

    font-size: 14px;
}


.register-radio input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.register-radio-mark {
    width: 18px;
    height: 18px;

    display: block;

    border:
        1.5px solid #aeb9c7;

    border-radius: 50%;

    position: relative;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.register-radio input:checked
+ .register-radio-mark {
    border-color: #1d5b98;
}


.register-radio input:checked
+ .register-radio-mark::after {
    content: "";

    position: absolute;

    inset: 4px;

    border-radius: 50%;

    background: #1d5b98;
}


/* ============================================================
   PASSWORD
============================================================ */

.register-password-toggle {
    position: absolute;

    right: 11px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    color: #3f5878;

    cursor: pointer;

    z-index: 3;
}


.register-password-toggle:hover {
    color: #ef7900;
}


/* ============================================================
   FORCE DU MOT DE PASSE
============================================================ */

.register-password-strength {
    margin-top: 6px;
}


.register-strength-bar {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 2px;

    height: 4px;

    margin-bottom: 5px;
}


.register-strength-bar span {
    display: block;

    border-radius: 3px;

    background: #dfe5ec;

    transition:
        background 0.2s ease;
}


/* Couleurs par défaut visuellement proches de la maquette */

.register-strength-bar span:nth-child(1) {
    background: #2d9654;
}


.register-strength-bar span:nth-child(2) {
    background: #9ac13d;
}


.register-strength-bar span:nth-child(3) {
    background: #f29c16;
}


.register-strength-bar span:nth-child(4) {
    background: #d93b3b;
}


.register-password-strength small {
    display: block;

    color: #69778b;

    font-size: 10px;

    line-height: 1.4;
}


/* ============================================================
   ERREURS
============================================================ */

.register-field-error {
    margin-top: 5px;

    color: #cf3c47;

    font-size: 11px;

    line-height: 1.35;
}


/* ============================================================
   CONDITIONS
============================================================ */

.register-terms {
    margin-top: 19px;
    margin-bottom: 18px;
}


.register-checkbox {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    cursor: pointer;
}


.register-checkbox input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.register-checkbox-mark {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    margin-top: 1px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1.5px solid #9eafc2;

    border-radius: 3px;

    color: #ffffff;

    font-size: 9px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.register-checkbox-mark i {
    opacity: 0;

    transform: scale(0.6);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.register-checkbox input:checked
+ .register-checkbox-mark {
    background: #1e5c99;

    border-color: #1e5c99;
}


.register-checkbox input:checked
+ .register-checkbox-mark i {
    opacity: 1;

    transform: scale(1);
}


.register-checkbox-text {
    color: #4c5d72;

    font-size: 12px;

    line-height: 1.5;
}


.register-checkbox-text a {
    color: #173d6d;

    font-weight: 500;

    text-decoration: underline;
}


.register-checkbox-text b {
    color: #d93737;
}


/* ============================================================
   BOUTON
============================================================ */

.register-submit-button {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 0;

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            #e96f00 0%,
            #f47b00 50%,
            #ee7200 100%
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(230, 111, 0, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.register-submit-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.03);

    box-shadow:
        0 12px 24px
        rgba(230, 111, 0, 0.28);
}


.register-submit-button:active {
    transform: translateY(0);
}


/* ============================================================
   LIEN CONNEXION
============================================================ */

.register-login-link {
    margin-top: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #58687c;

    font-size: 13px;
}


.register-login-link a {
    color: #173d6d;

    font-weight: 700;

    text-decoration: underline;
}


.register-login-link a:hover {
    color: #ef7900;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1250px) {

    .register-layout {
        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(580px, 1.05fr);
    }


    .register-showcase {
        padding:
            28px 40px;
    }


    .register-form-area {
        padding:
            24px 35px 28px 24px;
    }


    .register-benefits {
        max-width: 100%;
    }


    .register-form-card {
        padding:
            30px 24px 25px;
    }

}


@media (max-width: 1050px) {

    .register-layout {
        grid-template-columns: 1fr;
    }


    .register-showcase {
        min-height: 700px;
    }


    .register-form-area {
        padding:
            40px 30px;
    }


    .register-form-card {
        max-width: 760px;
    }

}


@media (max-width: 760px) {

    .register-page,
    .register-layout {
        min-height: auto;
    }


    .register-showcase {
        min-height: auto;

        padding:
            35px 24px 24px;
    }


    .register-showcase-logo {
        width: 105px;
        height: 105px;
    }


    .register-showcase-title {
        font-size: 34px;
    }


    .register-showcase-description {
        font-size: 14px;
    }


    .register-benefits {
        grid-template-columns:
            repeat(2, 1fr);

        margin-top: 30px;
    }


    .register-benefit {
        min-height: 115px;
    }


    .register-benefit:nth-child(2)::after {
        display: none;
    }


    .register-benefit:nth-child(1)::after,
    .register-benefit:nth-child(3)::after {
        display: block;
    }


    .register-form-area {
        padding:
            25px 15px;
    }


    .register-form-card {
        padding:
            25px 18px;
    }


    .register-form-grid {
        grid-template-columns: 1fr;
    }


    .register-form-header {
        align-items: flex-start;
    }


    .register-form-header-icon {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        font-size: 23px;
    }


    .register-form-header-content h2 {
        font-size: 23px;
    }

}


@media (max-width: 480px) {

    .register-showcase {
        padding:
            30px 18px 18px;
    }


    .register-showcase-logo {
        width: 90px;
        height: 90px;
    }


    .register-showcase-kicker {
        font-size: 13px;
    }


    .register-showcase-title {
        font-size: 29px;
    }


    .register-showcase-description {
        font-size: 13px;
    }


    .register-step-number {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 14px;
    }


    .register-step-content strong {
        font-size: 13px;
    }


    .register-step-content span {
        font-size: 11px;
    }


    .register-benefits {
        border-radius: 13px;
    }


    .register-benefit {
        padding:
            15px 8px 12px;
    }


    .register-benefit strong {
        font-size: 11px;
        white-space: normal;
    }


    .register-benefit span {
        font-size: 9px;
    }


    .register-gender-group {
        gap: 18px;
    }


    .register-login-link {
        flex-wrap: wrap;
    }

}
