/* Joelle CSA Auth — pagina login (split layout: visual sx + form dx) */

@font-face {
    font-family: 'Gotham';
    src: url('../../../../themes/joelle_2024/assets/fonts/Gotham-Light.woff2') format('woff2'),
         url('../../../../themes/joelle_2024/assets/fonts/Gotham-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gotham';
    src: url('../../../../themes/joelle_2024/assets/fonts/Gotham-Book.woff2') format('woff2'),
         url('../../../../themes/joelle_2024/assets/fonts/Gotham-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gotham';
    src: url('../../../../themes/joelle_2024/assets/fonts/Gotham-Medium.woff2') format('woff2'),
         url('../../../../themes/joelle_2024/assets/fonts/Gotham-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gotham';
    src: url('../../../../themes/joelle_2024/assets/fonts/Gotham-Bold.woff2') format('woff2'),
         url('../../../../themes/joelle_2024/assets/fonts/Gotham-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body.joellecsa-login-page {
    font-family: 'Gotham', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== Lato sinistro: visual ===== */
.login-page__visual {
    background-color: #2a2a2a;
    /* quando arriva l'immagine reale:
       background-image: url('../img/login-bg.jpg');
       background-size: cover;
       background-position: center;
    */
}

/* ===== Lato destro: form ===== */
.login-page__panel {
    display: flex;
    flex-direction: column;
    padding: 40px 56px;
    background: #fff;
}

.login-page__container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-page__header {
    display: flex;
    justify-content: flex-start;
}

.login-page__logo {
    max-width: 140px;
    height: auto;
}

.login-page__body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 48px 0;
}

.login-page__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.login-page__subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 28px;
}

.login-page__error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: 14px;
}

.login-page__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-page__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-page__label input {
    padding: 14px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-page__label input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.08);
}

.login-page__submit {
    margin-top: 8px;
    padding: 16px 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.login-page__submit:hover {
    background: #000;
}

.login-page__forgot {
    margin: 20px 0 0;
    text-align: left;
    font-size: 13px;
}

.login-page__forgot a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-page__forgot a:hover {
    color: #555;
}

.login-page__footer {
    text-align: left;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
    padding-top: 24px;
    margin-top: auto;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .login-page {
        grid-template-columns: 1fr;
    }
    .login-page__visual {
        display: none;
    }
    .login-page__panel {
        padding: 32px 24px;
    }
    .login-page__body {
        margin: 32px 0;
    }
}
