/* ------------------------------------------------------------------ */
/*  Auth Modal — Login & Registration                                  */
/*  Standalone file so the modal is styled on every page, not just     */
/*  pages that load chat.css.                                          */
/* ------------------------------------------------------------------ */
.rlc-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rlc-auth-modal {
    position: relative;
    width: 92%;
    max-width: 380px;
    background: #131318;
    border: 1px solid #2a2a35;
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    animation: rlc-modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: #efeff1;
}

@keyframes rlc-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rlc-auth-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #8e8ea0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.rlc-auth-close:hover {
    color: #c6011f;
}

.rlc-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #2a2a35;
}

.rlc-auth-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    color: #8e8ea0;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}

.rlc-auth-tab:hover {
    color: #efeff1;
}

.rlc-auth-tab-active {
    color: #c6011f;
    border-bottom-color: #c6011f;
}

.rlc-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rlc-auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8e8ea0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rlc-auth-field input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #1a1a22;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    color: #efeff1;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.rlc-auth-field input:focus {
    border-color: #c6011f;
    box-shadow: 0 0 0 3px rgba(198, 1, 31, 0.4);
}

.rlc-auth-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
    line-height: 1.4;
}

.rlc-auth-submit {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #c6011f 0%, #ff2d4a 50%, #c6011f 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s, background-position 0.4s;
}

.rlc-auth-submit:hover {
    filter: brightness(1.1);
    background-position: right center;
    transform: translateY(-1px);
}

.rlc-auth-submit:active {
    transform: translateY(0);
}

.rlc-auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}
