/* Forgot Password Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

/* Main Container - Frame 992 */
.forgot-password-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 40px;
    min-height: 100vh;
    width: fit-content;
    margin: 0 auto;
}

/* Content Wrapper - Frame 990 */
.forgot-password-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 48px;
    width: 120%;
    max-width: 615px;
    height: auto;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Header Section - Frame 989 */
.forgot-password-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 39px;
    width: 100%;
    max-width: 403px;
    height: auto;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Icon Container - Frame 985 */
.forgot-password-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5.65px;
    gap: 5.65px;
    width: 78px;
    height: 75px;
    background: #ff4c4b;
    border: 9.6px solid rgba(255, 76, 75, 0.5);
    border-radius: 60px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Key Icon */
.key-icon {
    width: 40.87px;
    height: 39.01px;
    border: 4.1px solid #ffffff;
    border-radius: 50%;
    flex: none;
    order: 0;
    flex-grow: 0;
    position: relative;
}

.key-icon::before {
    content: "🔑";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #ffffff;
}

/* Title and Subtitle Container - Frame 988 */
.forgot-password-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 100%;
    height: auto;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

/* Main Title */
.forgot-password-title {
    width: 100%;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    text-align: center;
    color: #292929;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Subtitle */
.forgot-password-subtitle {
    width: 100%;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 19px;
    line-height: 120%;
    text-align: center;
    color: #292929;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

/* Form Section - Frame 987 */
.forgot-password-form-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 19px;
    width: 100%;
    height: auto;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

/* Email Field Container - Frame 986 */
.email-field-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: 100%;
    height: auto;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    margin-bottom: 10px;
}

/* Email Label */
.email-label {
    width: 100%;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 19px;
    line-height: 120%;
    color: #292929;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Email Input Field - Frame 44 */
.email-input-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 28px 10px 20px;
    gap: 10px;
    width: 100%;
    height: 64px;
    border: 1px solid #76787c;
    border-radius: 10px;
    background: #ffffff;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #828282;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.email-input-field:focus {
    outline: none;
    border-color: #ff4c4b;
    color: #292929;
}

.email-input-field::placeholder {
    color: #828282;
}

/* Reset Button - Frame 8 */
.reset-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 100%;
    height: 79px;
    background: #ff4c4b;
    border: none;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 23px;
    line-height: 120%;
    color: #ffffff;
    cursor: pointer;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    transition: background-color 0.3s ease;
}

.reset-button:hover {
    background: #292929;
}

.reset-button:active {
    background: #292929;
}

/* Back to Login Section - Frame 991 */
.back-to-login {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 16px;
    width: auto;
    height: auto;
    flex: none;
    order: 1;
    flex-grow: 0;
    margin-top: 20px;
}

/* Back Arrow */
.back-arrow {
    width: 17px;
    height: 2px;
    border: none;
    border-top: 2px solid #000000;
    position: relative;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.back-arrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-left: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(45deg);
}

/* Back to Login Text */
.back-to-login-text {
    width: auto;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 23px;
    line-height: 120%;
    color: #292929;
    text-decoration: none;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: color 0.3s ease;
}

.back-to-login-text:hover {
    color: #ff4c4b;
    text-decoration: underline;
}

/* Error Styling */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #ff4c4b;
    font-family: "Inter", sans-serif;
}

.is-invalid {
    border-color: #ff4c4b !important;
}

/* Success Message */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Container styling using header.css approach */
.forgot-password-container {
    width: fit-content;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forgot-password-container {
        padding: 20px 15px;
        gap: 30px;
    }

    .forgot-password-content {
        gap: 35px;
        max-width: 100%;
    }

    .forgot-password-title {
        font-size: 32px;
    }

    .forgot-password-subtitle {
        font-size: 17px;
    }

    .email-label {
        font-size: 17px;
    }

    .reset-button {
        height: 65px;
        font-size: 20px;
    }

    .email-input-field {
        height: 55px;
        font-size: 15px;
        padding: 10px 20px;
    }

    .back-to-login-text {
        font-size: 18px;
    }

    .forgot-password-header {
        gap: 25px;
        max-width: 100%;
    }

    .forgot-password-icon {
        width: 65px;
        height: 62px;
    }
}

@media (max-width: 576px) {
    .forgot-password-container {
        padding: 15px 10px;
        gap: 25px;
    }

    .forgot-password-title {
        font-size: 28px;
    }

    .forgot-password-subtitle {
        font-size: 16px;
    }

    .email-label {
        font-size: 16px;
    }

    .reset-button {
        height: 60px;
        font-size: 18px;
    }

    .email-input-field {
        height: 50px;
        font-size: 14px;
    }

    .back-to-login-text {
        font-size: 16px;
    }

    .back-to-login {
        gap: 12px;
    }

    .forgot-password-icon {
        width: 60px;
        height: 57px;
    }
}

/* Override body background for clean look */
body {
    background: #ffffff;
    font-family: "Inter", sans-serif;
}
