/* ILP 비밀번호 찾기 페이지 스타일 */

/* 메인 컨테이너 */
.forgot-password-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* 배경 장식 요소 */
.forgot-password-wrapper::before,
.forgot-password-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.05);
}

.forgot-password-wrapper::before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.forgot-password-wrapper::after {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
}

/* 비밀번호 찾기 박스 */
.forgot-password-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 
                0 5px 15px rgba(0, 0, 0, 0.07);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 아이콘 */
.forgot-password-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    }
}

.forgot-password-icon i {
    font-size: 2.5rem;
    color: white;
}

/* 제목 */
.forgot-password-header {
    text-align: center;
    margin-bottom: 2rem;
}

.forgot-password-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forgot-password-subtitle {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
}

/* 폼 스타일 */
.forgot-password-form {
    margin-top: 2rem;
}

/* 입력 그룹 래퍼 */
.input-group-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    font-size: 1.25rem;
    z-index: 2;
    pointer-events: none;
}

.form-floating {
    position: relative;
}

.form-floating > .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    height: calc(3.5rem + 2px);
    line-height: 1.5;
}

.form-floating > .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background-color: white;
}

.form-floating > label {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: #718096;
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    height: auto;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating.has-value > label {
    opacity: 0;
    visibility: hidden;
}

/* Autofill 상태 스타일 */
.form-floating > .form-control-plaintext:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
}

/* Autofill 배경색 커스터마이징 */
.form-floating > .form-control:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill:hover,
.form-floating > .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
    box-shadow: 0 0 0 1000px #f8fafc inset;
    -webkit-text-fill-color: #1a202c;
}

.form-floating > .form-control:focus:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    box-shadow: 0 0 0 1000px white inset;
}

/* 에러 메시지 */
.input-group-wrapper .text-danger {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
}

.text-danger {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.text-danger:not(:empty) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fee;
    border-radius: 8px;
    animation: shake 0.3s ease-in-out;
    position: relative;
}

.text-danger:not(:empty)::before {
    content: "\f06a"; /* Font Awesome exclamation-circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Validation Summary */
.validation-summary-errors {
    background-color: #fee;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.validation-summary-errors li {
    color: #dc2626;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    position: relative;
}

.validation-summary-errors li::before {
    content: "\f06a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: -1.5rem;
}

/* 성공 메시지 */
.success-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    color: #16a34a;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.3s ease-out;
}

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

.success-message i {
    font-size: 1.25rem;
}

/* 정보 메시지 */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.info-box i {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.info-box p {
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* 버튼 */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

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

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

/* 로딩 상태 */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 링크 */
.forgot-password-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.forgot-password-links a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password-links a:hover {
    color: #4c1d95;
    transform: translateX(-5px);
}

.forgot-password-links a i {
    transition: transform 0.3s ease;
}

.forgot-password-links a:hover i {
    transform: translateX(-5px);
}

/* 보안 정보 */
.security-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    color: #718096;
    font-size: 0.875rem;
}

.security-info i {
    color: #10b981;
}

/* 반응형 디자인 */
@media (max-width: 576px) {
    .forgot-password-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .forgot-password-title {
        font-size: 1.75rem;
    }
    
    .forgot-password-icon {
        width: 60px;
        height: 60px;
    }
    
    .forgot-password-icon i {
        font-size: 2rem;
    }
}