/* ==========================================================
   MYMENU — AUTHENTICATION
   ========================================================== */

.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #f7f7f8;
}

.auth-container {
    width: min(1080px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
}


/* ==========================================================
   VISUAL PANEL
   ========================================================== */

.auth-visual {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #191919;
}

.auth-visual__image {
    position: absolute;
    inset: 0;
    background:
        url("/static/images/defaults/auth.jpg")
        center / cover no-repeat;
}

.auth-visual__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            145deg,
            rgba(15, 15, 15, 0.88),
            rgba(15, 15, 15, 0.42)
        ),
        linear-gradient(
            0deg,
            rgba(227, 30, 36, 0.25),
            transparent 60%
        );
}

.auth-visual__content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
}

.auth-visual__logo {
    width: 155px;
    height: auto;
    margin-bottom: 28px;
    object-fit: contain;
}

.auth-visual__eyebrow,
.auth-card__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #e31e24;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.auth-visual__eyebrow {
    color: #ffffff;
    opacity: 0.8;
}

.auth-visual h1 {
    max-width: 440px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.auth-visual h1 span {
    color: #ff4a4f;
}

.auth-visual p {
    max-width: 440px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.8;
}


/* ==========================================================
   FORM PANEL
   ========================================================== */

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #ffffff;
}

.auth-card {
    width: min(390px, 100%);
}

.auth-card__header {
    margin-bottom: 34px;
}

.auth-card__header h2 {
    margin: 0;
    color: #191919;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.auth-card__header p {
    margin: 10px 0 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.7;
}


/* ==========================================================
   FORM
   ========================================================== */

.auth-form {
    width: 100%;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-size: 12px;
    font-weight: 600;
}

.auth-field__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-field__label label {
    margin-bottom: 8px;
}

.auth-forgot {
    margin-bottom: 8px;
    color: #e31e24;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #222222;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-field input::placeholder {
    color: #aaaaaa;
}

.auth-field input:focus {
    border-color: #e31e24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.08);
}


/* ==========================================================
   PASSWORD
   ========================================================== */

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 60px !important;
}

.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    padding: 4px;
    background: transparent;
    color: #e31e24;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}


/* ==========================================================
   OPTIONS
   ========================================================== */

.auth-options {
    margin: 4px 0 24px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #777777;
    font-size: 11px;
    cursor: pointer;
}

.auth-checkbox input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #e31e24;
}


/* ==========================================================
   SUBMIT
   ========================================================== */

.auth-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #e31e24;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(227, 30, 36, 0.16);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-submit:hover {
    background: #c9181d;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(227, 30, 36, 0.22);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.auth-card__footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eeeeee;
    text-align: center;
}

.auth-card__footer p {
    margin: 0;
    color: #999999;
    font-size: 11px;
    line-height: 1.7;
}

.auth-card__footer span {
    color: #666666;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 850px) {

    .auth-page {
        padding: 24px;
    }

    .auth-container {
        grid-template-columns: 0.9fr 1.1fr;
        min-height: 580px;
    }

    .auth-visual,
    .auth-visual__content {
        min-height: 580px;
    }

    .auth-visual__content {
        padding: 36px;
    }

    .auth-form-panel {
        padding: 36px;
    }

    .auth-visual h1 {
        font-size: 38px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 680px) {

    .auth-page {
        min-height: calc(100vh - 64px);
        padding: 14px;
        align-items: flex-start;
    }

    .auth-container {
        display: block;
        min-height: auto;
        border-radius: 18px;
    }

    .auth-visual {
        min-height: 220px;
        height: 220px;
    }

    .auth-visual__content {
        min-height: 220px;
        padding: 28px 24px;
        justify-content: flex-end;
    }

    .auth-visual__logo {
        width: 110px;
        margin-bottom: 12px;
    }

    .auth-visual__eyebrow {
        margin-bottom: 8px;
        font-size: 8px;
    }

    .auth-visual h1 {
        font-size: 28px;
    }

    .auth-visual p {
        display: none;
    }

    .auth-form-panel {
        padding: 32px 24px 28px;
    }

    .auth-card__header {
        margin-bottom: 26px;
    }

    .auth-card__header h2 {
        font-size: 26px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 380px) {

    .auth-page {
        padding: 10px;
    }

    .auth-visual {
        min-height: 190px;
        height: 190px;
    }

    .auth-visual__content {
        min-height: 190px;
        padding: 22px 20px;
    }

    .auth-visual h1 {
        font-size: 25px;
    }

    .auth-form-panel {
        padding: 28px 20px 24px;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .auth-field input,
    .auth-submit {
        transition: none;
    }
}



/* ==========================================================
   FLASH MESSAGES
   ========================================================== */

.auth-flash-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-flash__message {
    flex: 1;
}

.auth-flash__close {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.auth-flash__close:hover {
    background: rgba(0, 0, 0, 0.06);
}


/* SUCCESS */

.auth-flash--success {
    background: #edf8f0;
    border-color: #c9e8d0;
    color: #216e39;
}


/* ERROR */

.auth-flash--error {
    background: #fff0f0;
    border-color: #f3cccc;
    color: #b42318;
}


/* WARNING */

.auth-flash--warning {
    background: #fff8e8;
    border-color: #f0dfad;
    color: #8a6100;
}


/* INFO */

.auth-flash--info {
    background: #eef6ff;
    border-color: #cfe2f5;
    color: #175b91;
}


/* FORM VALIDATION ERRORS */

.auth-field__errors {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 7px;
}

.auth-field__errors span {
    color: #d62828;
    font-size: 12px;
    line-height: 1.4;
}