.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 1000;
}

.auth-modal-backdrop.is-open {
    display: flex;
}

.auth-modal {
    width: min(100%, 26rem);
    background: #241912;
    border: 1px solid rgba(196, 181, 165, 0.18);
    padding: 1.5rem;
    color: #f3ebe3;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-modal h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-tab {
    background: none;
    border: none;
    color: #c4b5a5;
    font: inherit;
    padding: 0;
    cursor: pointer;
}

.auth-tab.is-active {
    color: #f3ebe3;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-form.is-active {
    display: flex;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #c4b5a5;
    text-align: left;
}

.auth-form input {
    background: #1a1410;
    border: 1px solid rgba(196, 181, 165, 0.25);
    color: #f3ebe3;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.auth-form input:focus {
    outline: 1px solid rgba(243, 235, 227, 0.35);
}

.auth-submit {
    margin-top: 0.25rem;
    background: #5c3d28;
    border: none;
    color: #f3ebe3;
    padding: 0.75rem 1rem;
    font: inherit;
    cursor: pointer;
}

.auth-submit:hover {
    background: #70492f;
}

.auth-close {
    float: right;
    background: none;
    border: none;
    color: #c4b5a5;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.auth-feedback {
    min-height: 1.25rem;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #e8b4a0;
}

.auth-feedback.is-success {
    color: #c4b5a5;
}

.auth-access-banner {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #c4b5a5;
}

.auth-access-banner button {
    background: none;
    border: none;
    color: #f3ebe3;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.dev-trigger {
    cursor: pointer;
}
