/**
 * Password Change Popup Styles
 * 패스워드 변경 팝업 전용 스타일
 */

/* Modal Container */
#passwordChangeModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modal Content */
.auth-modal-content {
    background: white;
    border-radius: 8px;
    min-width: 450px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Modal Header */
.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.auth-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.auth-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.auth-modal-body {
    padding: 24px;
}

.auth-modal-body p {
    line-height: 1.6;
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group input::placeholder {
    color: #999;
    font-style: italic;
}

/* Button Styles */
.auth-submit-btn, .auth-extend-btn {
    padding: 10px 20px;
    height: 40px;  /* 두 버튼 높이 동일하게 설정 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;  /* 수직 정렬 추가 */
    margin: 0;  /* 상하 마진 제거 */
}

/* 버튼 내 아이콘 스타일 */
.auth-submit-btn i, .auth-extend-btn i {
    margin-right: 8px;  /* 아이콘과 텍스트 사이 간격 */
}

.auth-submit-btn {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: white;
    min-width: 50px;  /* 변경하기 버튼 - 기존의 절반 */
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.auth-extend-btn {
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    color: white;
    min-width: 200px;  /* 연장하기 버튼 - 기존의 두 배 */
}

.auth-extend-btn:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.auth-submit-btn:active, .auth-extend-btn:active {
    transform: translateY(0);
}

/* Button Container */
.button-container {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    align-items: center;  /* 버튼들을 수직 중앙 정렬 */
}

/* Warning Message */
.password-warning {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    color: #e65100;
}

.password-warning strong {
    display: block;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .auth-modal-content {
        min-width: 320px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .auth-modal-body {
        padding: 20px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .auth-submit-btn, .auth-extend-btn {
        width: 100%;
        min-width: auto;
    }
}