﻿/* ============================================================
   ewlogin.css — auth modals (EW2027)
   Two dialogs that swap in place (login <-> signup) over a shaded
   backdrop. Restyled to the EW2023 gold-panel look sampled from
   the live popups:
       panel        #ddb785  (--ew-gold)
       input fill   #e7cfa6
       input border #c39d68
       button       #534c42
       ink text     #2a2a2a
   Colors are hard-set here (not theme tokens): these modals are the
   theme-invariant gold panel by design, matching EW2023.
   ============================================================ */

.ewauth-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(5, 5, 5, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

    .ewauth-overlay[hidden] {
        display: none;
    }

/* A single overlay hosts both panels; only one is shown at a time. */
.ewauth-panel {
    position: relative;
    background: #ddb785;
    color: #2a2a2a;
    border-radius: 6px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    padding: 30px 34px 30px;
}

    .ewauth-panel[hidden] {
        display: none;
    }

.ewauth-panel--login {
    width: 100%;
    max-width: 620px;
}

.ewauth-panel--signup {
    width: 100%;
    max-width: 520px;
}

.ewauth-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #2a2a2a;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.7;
}

    .ewauth-close:hover {
        opacity: 1;
    }

.ewauth-title {
    margin: 0 0 16px;
    font-size: 1.9rem;
    font-weight: 800;
    color: #2a2a2a;
}

.ewauth-sub {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: #2a2a2a;
}

.ewauth-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0 0 5px;
}

.ewauth-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 16px;
    padding: 0.6rem 0.7rem;
    font-size: 0.95rem;
    background: #e7cfa6;
    color: #2a2a2a;
    border: 1px solid #c39d68;
    border-radius: 4px;
}

    .ewauth-input::placeholder {
        color: #97836a;
    }

    .ewauth-input:focus-visible {
        outline: 2px solid #534c42;
        outline-offset: 1px;
        border-color: #534c42;
    }

.ewauth-btn {
    padding: 0.6rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e7cfa6;
    background: #534c42;
    border: 1px solid #534c42;
    border-radius: 4px;
    cursor: pointer;
}

    .ewauth-btn:hover {
        background: #443e36;
    }

    .ewauth-btn[disabled] {
        opacity: 0.6;
        cursor: default;
    }

.ewauth-err {
    margin: 0 0 14px;
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
    color: #7a1f1f;
    background: #f0d2b0;
    border: 1px solid #c0392b;
    border-radius: 4px;
}

    .ewauth-err[hidden] {
        display: none;
    }

/* ---------- LOGIN: two-column layout ---------- */
.ewauth-login-grid {
    display: flex;
    gap: 34px;
}

.ewauth-col-signin {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
}

.ewauth-col-aside {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 1px solid #c39d68;
    padding-left: 30px;
}

.ewauth-aside-title {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #2a2a2a;
}

.ewauth-aside-copy {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: #2a2a2a;
}

.ewauth-forgot {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #2a2a2a;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

    .ewauth-forgot:hover {
        color: #000;
    }

/* ---------- SIGNUP: name row + checkboxes ---------- */
.ewauth-row {
    display: flex;
    gap: 16px;
}

    .ewauth-row > .ewauth-field {
        flex: 1 1 50%;
    }

.ewauth-field {
    display: flex;
    flex-direction: column;
}

.ewauth-signup-actions {
    display: flex;
    justify-content: center;
    margin: 6px 0 18px;
}

.ewauth-checks {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #c39d68;
    padding-top: 16px;
}

.ewauth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #2a2a2a;
}

    .ewauth-check input {
        width: 16px;
        height: 16px;
        accent-color: #534c42;
    }

/* ---------- social row (both modals) ---------- */
.ewauth-social {
    margin-top: 4px;
    text-align: center;
}

.ewauth-social-label {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #2a2a2a;
}

.ewauth-social-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.ewauth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #c39d68;
    border-radius: 6px;
    background: #e7cfa6;
    cursor: pointer;
    padding: 0;
}

    .ewauth-social-btn:hover {
        background: #f0dcbb;
    }

    .ewauth-social-btn svg {
        width: 24px;
        height: 24px;
        display: block;
    }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
    .ewauth-login-grid {
        flex-direction: column;
        gap: 22px;
    }

    .ewauth-col-aside {
        border-left: none;
        border-top: 1px solid #c39d68;
        padding-left: 0;
        padding-top: 22px;
    }

    .ewauth-row {
        flex-direction: column;
        gap: 0;
    }
}
