/* 로그인 모달 스타일 */

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.login-modal-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.login-modal-close:hover {
    color: #333;
}

.login-modal-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.login-modal-field {
    margin-bottom: 15px;
}

.login-modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.login-modal-input:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.login-modal-options {
    margin-bottom: 20px;
}

.login-modal-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.login-modal-checkbox input {
    margin-right: 8px;
}

.login-modal-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4a90d9, #357abd);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

.login-modal-submit:active {
    transform: translateY(0);
}

.login-modal-error {
    margin-top: 15px;
    padding: 12px;
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    color: #c62828;
    font-size: 14px;
    text-align: center;
}

.login-modal-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.login-modal-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.login-modal-footer a:hover {
    color: #4a90d9;
}

.login-modal-footer .divider {
    margin: 0 10px;
    color: #ddd;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .login-modal-container {
        padding: 15px;
    }
    
    .login-modal-box {
        padding: 30px 20px;
    }
    
    .login-modal-title {
        font-size: 20px;
    }
}

/* 중복 로그인 경고 모달 스타일 */
.duplicate-alert-box {
    max-width: 480px;
}

.duplicate-alert-icon {
    text-align: center;
    font-size: 50px;
    margin-bottom: 15px;
    color: #ff5252;
}

.duplicate-alert-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #ff5252;
    margin-bottom: 20px;
}

.duplicate-info-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.duplicate-info-box.new-device {
    background: #e3f2fd;
    border: 1px solid #90caf9;
}

.duplicate-info-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.duplicate-info-box p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.duplicate-info-box .label {
    display: inline-block;
    width: 80px;
    font-weight: 500;
    color: #333;
}

.duplicate-alert-notice {
    background: #fff8e1;
    border: 1px solid #ffcc80;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #e65100;
    margin-bottom: 20px;
    text-align: center;
}

.duplicate-alert-buttons {
    display: flex;
    gap: 10px;
}

.btn-force-login {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-force-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

.btn-cancel {
    flex: 0.6;
    padding: 12px;
    background: #9e9e9e;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #757575;
}

@media (max-width: 480px) {
    .duplicate-alert-buttons {
        flex-direction: column;
    }
    
    .btn-cancel {
        flex: 1;
    }
}

/* 강제 로그아웃 모달 스타일 */
.forced-logout-box {
    text-align: center;
}

.forced-logout-icon {
    font-size: 60px;
    margin-bottom: 15px;
    color: #ff9800;
}

.forced-logout-title {
    font-size: 22px;
    font-weight: 600;
    color: #ff9800;
    margin-bottom: 20px;
}

.forced-logout-message {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.forced-logout-message p {
    margin: 5px 0;
}

.forced-logout-warning {
    background: #fff3e0;
    border: 1px solid #ff9800;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #e65100;
    margin-bottom: 25px;
}

.forced-logout-buttons {
    display: flex;
    gap: 10px;
}

.btn-relogin {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-relogin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-home {
    flex: 0.6;
    padding: 14px;
    background: #9e9e9e;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-home:hover {
    background: #757575;
}

@media (max-width: 480px) {
    .forced-logout-buttons {
        flex-direction: column;
    }
    
    .btn-home {
        flex: 1;
    }
}