/* ===========================================================
   Chat Login Module Styles
   이 파일을 삭제하면 로그인 팝업 전체가 제거됩니다.
   =========================================================== */

.chat-login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(2px);
}

.chat-login-modal.is-active {
    display: flex;
}

.chat-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.chat-login-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-login-header {
    text-align: center;
}

.chat-login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.chat-login-header p {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: #4b5563;
}

.chat-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-login-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.chat-login-field input {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-login-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.chat-login-message {
    min-height: 22px;
    font-size: 0.85rem;
    color: #ef4444;
    text-align: center;
}

.chat-login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-login-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.chat-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.chat-login-footer {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

.chat-login-footer button {
    margin-top: 8px;
    background: transparent;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-weight: 600;
}

body.chat-login-locked {
    overflow: hidden;
}

@media (max-width: 480px) {
    .chat-login-dialog {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .chat-login-header h2 {
        font-size: 1.35rem;
    }
}

