.forgot-password.body {
    font-family: "Be Vietnam Pro", sans-serif;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.forgot-password-container {
    position: relative;
    width: 606px;
    height: 768px;
    max-width: 100%;
    aspect-ratio: 606/768;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forgot-password-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(to bottom, #57007b, #f76680);
    z-index: 0;
}

.forgot-password-form-container {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    z-index: 1;
    background-color: white;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.forgot-password-form {
    width: 100%;
    max-width: 429px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-title {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #333333;
    text-align: center;
    margin-bottom: 10px;
}

.form-description {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 5px;
    position: relative;
}

.input-group label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #999999;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    border-bottom: 1px solid #d9d9d9;
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: normal !important;
    font-size: 16px;
    color: #5c5c5c;
    background-color: transparent;
    outline: none;
    background-image: none !important;
}

.input-container input::placeholder {
    color: #5c5c5c;
    opacity: 0.7;
}

.input-container input:not(:placeholder-shown) {
    color: #333333;
}

.input-container input:focus::placeholder {
    opacity: 0;
}

.input-container input.has-value {
    color: #333333;
    font-weight: normal;
}

.input-container input.has-value::placeholder {
    opacity: 0;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

/* Enhanced reset button with animations */
.reset-button {
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(
        45deg,
        rgba(87, 0, 123, 0.8),
        rgba(247, 102, 128, 0.8)
    );
    border: none;
    border-radius: 30px;
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(87, 0, 123, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    z-index: 1;
}

.reset-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
    z-index: -1;
}

.reset-button:hover:before {
    left: 100%;
}

.reset-button:hover {
    background: linear-gradient(
        45deg,
        rgba(87, 0, 123, 0.9),
        rgba(247, 102, 128, 0.9)
    );
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(87, 0, 123, 0.35);
}

.reset-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(87, 0, 123, 0.2);
}

/* Loading animation for button */
.reset-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.loading-dots span {
    width: 5px;
    height: 5px;
    margin: 0 2px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: dots-animation 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dots-animation {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Enhanced ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 255, 255, 0.2) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: scale(0);
    animation: ripple-animation 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced button ripple effect */
.reset-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.reset-button:focus:not(:active)::after {
    animation: ripple 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.7;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(50, 50);
    }
}

/* Enhanced checkmark animation */
.checkmark {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0;
    animation: checkmark-appear 0.7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    text-shadow: 0 0 5px rgba(39, 174, 96, 0.5);
}

@keyframes checkmark-appear {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0) rotate(-20deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.3) rotate(5deg);
    }
    70% {
        transform: translateY(-50%) scale(0.9) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1) rotate(0deg);
    }
}

/* Success particles effect */
.success-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.particle {
    position: absolute;
    border-radius: 50%;
    z-index: 101;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Success state for button */
.reset-button.success {
    background: linear-gradient(
        45deg,
        rgba(39, 174, 96, 0.7),
        rgba(39, 174, 96, 0.9)
    );
    animation: success-pulse 2s infinite;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

@keyframes success-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Error state for button */
.reset-button.error {
    background: linear-gradient(
        45deg,
        rgba(244, 67, 54, 0.7),
        rgba(244, 67, 54, 0.9)
    );
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}

/* Custom button state: disabled */
.reset-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 10px rgba(87, 0, 123, 0.15);
}

/* Add a subtle pulsating effect to the button */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 6px 20px rgba(87, 0, 123, 0.25);
    }
    50% {
        box-shadow: 0 6px 25px rgba(87, 0, 123, 0.4);
    }
    100% {
        box-shadow: 0 6px 20px rgba(87, 0, 123, 0.25);
    }
}

.reset-button:not(:disabled):not(:active):not(:hover) {
    animation: subtle-pulse 2s infinite;
}

/* Improve focus styles */
.reset-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 0, 123, 0.3),
        0 6px 20px rgba(87, 0, 123, 0.25);
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-to-login a:hover {
    color: #57007b;
}

.error-message-container {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #f76680;
    padding: 10px 15px;
    color: #f76680;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in-out;
    margin-bottom: 15px;
}

.error-message {
    visibility: hidden;
    color: #f76680;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
    font-family: "Be Vietnam Pro", sans-serif;
    transition: all 0.3s ease;
    height: 18px;
    opacity: 0;
}

.error-message:not(:empty) {
    visibility: visible;
    opacity: 1;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-container.error {
    border-bottom: 1px solid #f76680 !important;
}

.input-container.error input {
    color: #f76680;
}

@media (max-width: 768px) {
    .forgot-password-form-container {
        padding: 30px 20px;
    }

    .forgot-password-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .forgot-password-container {
        height: auto;
        min-height: 80vh;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #5c5c5c !important;
}

/* Shake animation for error validation */
.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* Success message styling */
.error-message-container.success {
    background-color: rgba(39, 174, 96, 0.1);
    border-left: 3px solid #27ae60;
    color: #27ae60;
}

/* Custom focus styles */
input:focus {
    outline: none !important;
}

/* Hover effects for input fields */
.input-container:hover {
    border-color: rgba(87, 0, 123, 0.3);
}

/* Add transition for all interactive elements */
a,
button,
input,
.input-container {
    transition: all 0.3s ease;
}

/* Improve back to login link */
.back-to-login a {
    position: relative;
    display: inline-block;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.back-to-login a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #57007b, #f76680);
    transition: width 0.3s ease;
}

.back-to-login a:hover {
    color: #57007b;
}

.back-to-login a:hover:after {
    width: 100%;
}
