/* jQuery UI Dialog 커스텀 (기존 login.css 스타일 적용) */

.ui-dialog {
    position: fixed;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    z-index: 10000 !important;
}

.ui-dialog .ui-dialog-titlebar {
    display: none !important;
}

.ui-dialog .ui-dialog-content {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

/* 로그인 다이얼로그 */
.ui-dialog.login-dialog {
    width: 420px !important;
}

.ui-dialog.login-dialog .ui-dialog-content {
    width: 100% !important;
    height: auto !important;
}

/* 로그인 카드 (기존 login-card 스타일 적용) */
.login-modal-content {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 40px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-modal-logo {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-family: 'Poppins', sans-serif;
    text-shadow: 
        0 0 10px rgba(16, 185, 129, 0.8),
        0 0 20px rgba(16, 185, 129, 0.6),
        0 0 30px rgba(16, 185, 129, 0.4),
        0 0 40px rgba(16, 185, 129, 0.2);
}

.login-modal-logo .letter-f {
    color: #55B765;
}

.login-modal-logo .letter-rest {
    color: #ffffff;
}

.login-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.login-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    text-shadow: 
        0 0 10px rgba(16, 185, 129, 0.5),
        0 0 20px rgba(16, 185, 129, 0.3),
        0 0 30px rgba(16, 185, 129, 0.2);
}

.login-modal-subtitle .hero-title-highlight {
    color: #55B765;
    font-weight: 500;
}

.login-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-modal-body .form-group {
    position: relative;
}

.login-modal-body .form-group label {
    display: none;
}

.login-modal-body .form-input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 0 20px;
    font-size: 15px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-modal-body .form-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.login-modal-body .form-input:focus {
    outline: none;
    border-color: #55B765;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.login-modal-body .form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.login-modal-body .form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #55B765;
}

.login-modal-body .login-button {
    width: 100%;
    height: 56px;
    background: #55B765;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-modal-body .login-button:hover {
    background: transparent;
    border-color: #55B765;
    color: #55B765;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* 사용자 정보 변경 다이얼로그 */
.ui-dialog.change-user-dialog {
    width: 500px !important;
}

.change-user-content {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.change-user-header {
    text-align: center;
    margin-bottom: 30px;
}

.change-user-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.change-user-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.change-user-body .form-group {
    position: relative;
}

.change-user-body .form-group label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-weight: 500;
}

.change-user-body .form-input,
.change-user-body input[type="text"],
.change-user-body input[type="password"] {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 0 20px;
    font-size: 15px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.change-user-body .form-input::placeholder,
.change-user-body input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.change-user-body .form-input:focus,
.change-user-body input:focus {
    outline: none;
    border-color: #55B765;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.change-user-body .form-input:disabled,
.change-user-body input:disabled {
    background: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.change-user-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.change-user-actions button {
    flex: 1;
    height: 56px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-user-actions .btn-primary {
    background: #55B765;
    border: 1px solid transparent;
    color: #ffffff;
}

.change-user-actions .btn-primary:hover {
    background: transparent;
    border-color: #55B765;
    color: #55B765;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.change-user-actions .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.change-user-actions .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* jQuery UI 오버레이 */
.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.75) !important;
    opacity: 1 !important;
    backdrop-filter: blur(4px);
}

/* 반응형 */
@media (max-width: 768px) {
    .ui-dialog.login-dialog,
    .ui-dialog.change-user-dialog {
        width: 90% !important;
        max-width: 420px !important;
    }
    
    .login-modal-content,
    .change-user-content {
        padding: 30px 25px;
    }
    
    .login-modal-title,
    .change-user-title {
        font-size: 24px;
    }
}
