/* ─── LOGIN MODAL ─── */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-backdrop.is-open {
    display: flex;
    opacity: 1;
}

.modal {
    width: min(440px, 100%);
    background: var(--ink-soft);
    border: 1px solid rgba(200, 168, 75, 0.25);
    padding: 2.5rem 2.2rem 2.2rem;
    position: relative;
    transform: translateY(8px);
    transition: transform 0.25s ease;
}

.modal-backdrop.is-open .modal { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    background: none;
    border: 0;
    color: rgba(245, 240, 232, 0.5);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}
.modal-close:hover { color: var(--cream); }

.modal h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.modal p.modal-sub {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

.modal .field input {
    width: 100%;
}

.modal .actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.4rem;
    align-items: center;
}

.modal .modal-error {
    color: #e58a8a;
    font-size: 0.82rem;
    margin-top: 0.6rem;
    min-height: 1em;
}

