/* Password Reset Page Styles */

.pw-reset-wrapper {
    min-height: calc(100vh - 80px - 220px); /* viewport - header - footer */
    display: flex;
    justify-content: center;
    background-color: #fff;
    padding: 100px 20px 60px;
}

.pw-reset-container {
    width: 100%;
    max-width: 486px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.pw-reset-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
    color: #3a3a3a;
}

.pw-reset-subtitle {
    margin-top: -40px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: #666;
}

.pw-reset-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

/* 라벨 스타일 */
.form-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #3a3a3a;
    margin-bottom: 12px;
}

/* 이메일 라벨 색상 */
.label-email {
    color: #4e4e4e;
}

/* 입력 필드 기본 스타일 */
.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    color: #3a3a3a;
    background-color: #f6f6f6;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #fff;
}

/* 이메일 입력 + 인증버튼 래퍼 */
.email-input-wrapper {
    display: flex;
    gap: 8px;
}

.email-input-wrapper .form-input {
    flex: 1;
}

/* 인증 버튼 */
.btn-verify {
    flex-shrink: 0;
    min-width: 72px;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #f6f6f6;
    color: #999;
}

.btn-verify:disabled {
    background-color: #f6f6f6;
    color: #999;
    cursor: not-allowed;
}

.btn-verify:not(:disabled) {
    background-color: #0F2A44;
    color: #fff;
}

.btn-verify:not(:disabled):hover {
    background-color: #1A3A5C;
}


/* 인증번호 입력 + 타이머 래퍼 */
.code-input-wrapper {
    position: relative;
}

.code-input-wrapper .form-input {
    padding-right: 72px;
}

.code-timer {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: #FF6262;
    pointer-events: none;
}

/* 폼 메시지 (에러/성공) */
.form-message {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.form-message:empty {
    display: none;
}

.form-message.error {
    color: #FF6262;
}

.form-message.success {
    color: #00CC4C;
}

.form-message.info {
    color: #3a3a3a;
}

/* 비밀번호 유효성 체크 태그 */
.password-validation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.validation-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 34px;
    padding: 8px 16px;
    border: 1px solid #C6C6C6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #4e4e4e;
    background-color: #fff;
    transition: all 0.2s;
}

.validation-tag .check-icon {
    width: 16px;
    height: 16px;
    stroke: #C6C6C6;
    transition: stroke 0.2s;
}

.validation-tag.valid {
    border-color: #27ED70;
    background-color: #E8FFEE;
}

.validation-tag.valid .check-icon {
    stroke: #27ED70;
}

/* 다음/확인 버튼 */
.btn-next {
    width: 100%;
    height: 48px;
    margin-top: 36px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-next:disabled {
    background-color: #d3d3d3;
    color: #fff;
    cursor: not-allowed;
}

.btn-next:not(:disabled) {
    background-color: #0F2A44;
    color: #fff;
}

.btn-next:not(:disabled):hover {
    background-color: #1A3A5C;
}

/* 로딩 상태 */
.btn-next.loading,
.btn-verify.loading {
    position: relative;
    color: transparent;
}

.btn-next.loading::after,
.btn-verify.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* 하단 로그인 링크 */
.pw-reset-footer {
    text-align: center;
}

.link-login {
    font-size: 14px;
    font-weight: 700;
    color: #3a3a3a;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.link-login:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 480px) {
    .pw-reset-wrapper {
        padding: 60px 16px 40px;
    }

    .pw-reset-container {
        gap: 40px;
    }

    .pw-reset-title {
        font-size: 24px;
        line-height: 32px;
    }

    .email-input-wrapper {
        flex-direction: column;
    }

    .btn-verify {
        width: 100%;
    }

    .password-validation-tags {
        gap: 6px;
    }

    .validation-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
}