/* ============================================================
   JOLIE CAPRICIEUSE PARIS
   FRONTEND — CUSTOMER LOGIN
   FILE : frontend/css/customer-login.css
   VERSION : 1.0.0
   ============================================================ */


/* ============================================================
   ROOT
   ============================================================ */

.customer-auth-page {
    background: #ffffff;
}


/* ============================================================
   PORTAL SHELL
   ============================================================ */

.customer-login-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 92px 0 110px;
}


/* ============================================================
   HEADER
   ============================================================ */

.customer-login-header {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}


.customer-login-header .customer-page-kicker {
    margin: 0 0 12px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #6c6864;
}


.customer-login-header .customer-page-title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(46px, 5vw, 72px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: #111111;
}


.customer-login-header .customer-page-intro {
    max-width: 620px;
    margin: 24px auto 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #706c68;
}


/* ============================================================
   GLOBAL MESSAGE
   ============================================================ */

.customer-auth-message {
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 14px 18px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #faf8f6;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
    color: #333333;
}


.customer-auth-message[hidden] {
    display: none;
}


/* ============================================================
   AUTH GRID
   ============================================================ */

.customer-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}


/* ============================================================
   AUTH CARD
   ============================================================ */

.customer-auth-card {
    position: relative;
    min-width: 0;
    padding: 46px 46px 42px;
    border: 1px solid rgba(17, 17, 17, 0.11);
    background: #ffffff;
    box-shadow:
        0 16px 44px rgba(17, 17, 17, 0.035);
}


.customer-auth-card-head {
    min-height: 150px;
    margin-bottom: 34px;
}


.customer-auth-eyebrow {
    margin: 0 0 12px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #817971;
}


.customer-auth-card h2 {
    margin: 0 0 14px;
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.05;
    color: #111111;
}


.customer-auth-card .customer-muted {
    max-width: 470px;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    color: #74706c;
}


/* ============================================================
   FORM
   ============================================================ */

.customer-auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


.customer-auth-fields-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}


/* ============================================================
   FIELD
   ============================================================ */

.customer-auth-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}


.customer-auth-field label {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #242220;
}


.customer-auth-field input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(17, 17, 17, 0.18);
    border-radius: 0;
    outline: none;
    background: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}


.customer-auth-field input:hover {
    border-color: rgba(17, 17, 17, 0.38);
}


.customer-auth-field input:focus {
    border-color: #111111;
    box-shadow:
        0 0 0 1px #111111;
}


.customer-auth-field input::placeholder {
    color: #aaa6a1;
}


/* ============================================================
   PASSWORD FIELD
   ============================================================ */

.customer-password-field {
    position: relative;
}


.customer-password-field input {
    padding-right: 92px;
}


.customer-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5d5955;
    cursor: pointer;
}


.customer-password-toggle:hover {
    color: #111111;
}


/* ============================================================
   HELP
   ============================================================ */

.customer-auth-help {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    line-height: 1.55;
    color: #85807a;
}


/* ============================================================
   LEGAL
   ============================================================ */

.customer-auth-legal {
    padding: 18px 20px;
    background: #faf8f6;
    border: 1px solid rgba(17, 17, 17, 0.07);
}


.customer-auth-legal p {
    margin: 0 0 8px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.65;
    color: #716c67;
}


.customer-auth-legal p:last-child {
    margin-bottom: 0;
}


.customer-auth-legal a {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================
   FORM MESSAGE
   ============================================================ */

.customer-auth-form-message {
    padding: 12px 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #faf8f6;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.55;
}


.customer-auth-form-message[hidden] {
    display: none;
}


.customer-auth-form-message.is-error {
    border-color: rgba(142, 42, 42, 0.22);
    background: #fff7f7;
    color: #872c2c;
}


.customer-auth-form-message.is-success {
    border-color: rgba(48, 104, 65, 0.22);
    background: #f7fbf8;
    color: #356b45;
}


/* ============================================================
   SUBMIT
   ============================================================ */

.customer-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 0 28px;
    border: 1px solid #111111;
    background: #111111;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        opacity 160ms ease;
}


.customer-auth-submit:hover {
    background: #ffffff;
    color: #111111;
}


.customer-auth-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}


/* ============================================================
   SECONDARY ACTION
   ============================================================ */

.customer-auth-secondary-action {
    display: flex;
    justify-content: center;
}


.customer-auth-text-button {
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.35);
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: #4d4945;
    cursor: pointer;
}


.customer-auth-text-button:hover {
    border-color: #111111;
    color: #111111;
}


/* ============================================================
   HISTORICAL CUSTOMER
   ============================================================ */

.customer-auth-existing-customer {
    margin-top: 28px;
    padding: 40px 48px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background:
        linear-gradient(
            135deg,
            #f7f1ed 0%,
            #fbf8f5 100%
        );
}


.customer-auth-existing-customer-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}


.customer-auth-existing-customer h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
    color: #111111;
}


.customer-auth-existing-customer p:last-child {
    max-width: 650px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: #706b66;
}


/* ============================================================
   TABLET
   ============================================================ */

@media screen and (max-width: 1024px) {

    .customer-login-shell {
        width: min(900px, calc(100% - 40px));
        padding-top: 70px;
        padding-bottom: 90px;
    }


    .customer-auth-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
    }


    .customer-auth-card-head {
        min-height: 0;
    }


    .customer-auth-existing-customer {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media screen and (max-width: 768px) {

    .customer-login-shell {
        width: calc(100% - 28px);
        padding: 46px 0 70px;
    }


    .customer-login-header {
        margin-bottom: 38px;
    }


    .customer-login-header .customer-page-title {
        font-size: 46px;
    }


    .customer-login-header .customer-page-intro {
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.65;
    }


    .customer-auth-grid {
        gap: 18px;
    }


    .customer-auth-card {
        padding: 30px 22px 28px;
    }


    .customer-auth-card-head {
        margin-bottom: 28px;
    }


    .customer-auth-card h2 {
        font-size: 34px;
    }


    .customer-auth-fields-row {
        grid-template-columns: 1fr;
    }


    .customer-auth-field input {
        height: 50px;
    }


    .customer-auth-submit {
        min-height: 52px;
    }


    .customer-auth-existing-customer {
        margin-top: 18px;
        padding: 32px 22px;
    }


    .customer-auth-existing-customer h2 {
        font-size: 29px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media screen and (max-width: 420px) {

    .customer-login-shell {
        width: calc(100% - 20px);
    }


    .customer-auth-card {
        padding-left: 18px;
        padding-right: 18px;
    }


    .customer-login-header .customer-page-title {
        font-size: 41px;
    }


    .customer-auth-card h2 {
        font-size: 31px;
    }


    .customer-auth-legal {
        padding: 16px;
    }

}