﻿/* Forgot Password page styles
   Tokens come from /Content/revu/revu-variables.css
*/


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--custom-font-inter, 'Inter', sans-serif);
    background-color: var(--custom-color-neutral-0, #F5F6F8) !important;
    color: var(--custom-color-secondary-0, #0D0630);
    overflow-x: hidden;
}

/* Decorative outlined circles in the background */
.forgot-bg-circle {
    position: fixed;
    border-radius: 50%;
    border: 2px solid var(--custom-color-primary-50, #9CBABC);
    pointer-events: none;
    z-index: 0;
}

.forgot-bg-circle--top {
    width: 400px;
    height: 400px;
    top: -160px;
    left: -160px;
}

.forgot-bg-circle--bottom {
    width: 380px;
    height: 380px;
    bottom: -160px;
    right: -160px;
}

/* Main wrapper centers everything */
.forgot-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 36px;
}

/* Brand logo */
.forgot-revu-logo {
    width: 105px;
    height: auto;
    margin-bottom: 46px;
    text-align: center;
}

.forgot-revu-logo img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Card */
.forgot-card {
    width: 100%;
    max-width: 625px;
    background-color: var(--custom-color-neutral-warm-0, #FFFEFC);
    border: 2px solid var(--custom-color-primary-20, #D7E3E4);
    border-radius: var(--custom-border-general-border-radius, 12px);
    padding: 40px 48px;
    text-align: center;
}

/* Lock icon at the top of the card */
.forgot-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
}

.forgot-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Typography */
.forgot-title {
    font-family: var(--custom-font-space-grotesk, 'Space Grotesk', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--custom-color-secondary-0, #0D0630);
    margin-bottom: 12px;
}

.forgot-subtitle {
    font-family: var(--custom-font-inter, 'Inter', sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: var(--custom-color-gray, #898A8D);
    margin-bottom: 28px;
}

/* Form */
.forgot-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-family: var(--custom-font-inter, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--custom-color-secondary-0, #0D0630);
    margin-bottom: 10px;
}

input.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--custom-font-inter, 'Inter', sans-serif);
    font-size: 14px;
    color: var(--custom-color-secondary-0, #0D0630);
    background-color: var(--custom-color-neutral-warm-0, #FFFEFC);
    border: 1px solid var(--custom-general-color-border-default, #D7E3E4);
    border-radius: var(--custom-border-general-border-radius-low, 8px);
    outline: none;
    transition: var(--custom-transition-general, all 0.1s ease-in-out);
}

    input.form-input:hover {
        border-color: var(--custom-general-color-border-default, #D7E3E4);
        background-color: var(--custom-color-neutral-cool-0, #FAFCFF);
    }

    input.form-input:focus {
        border-color: var(--custom-general-color-border-light, #9CBABC);
        background-color: var(--custom-color-neutral-cool-0, #FAFCFF);
    }

    input.form-input::placeholder {
        color: var(--custom-color-gray, #898A8D);
    }

    input.form-input.error {
        border-color: var(--custom-color-error, #C92020);
    }

.error-message {
    display: none;
    font-family: var(--custom-font-inter, 'Inter', sans-serif);
    font-size: 13px;
    color: var(--custom-color-error, #C92020);
    margin-top: 8px;
}

.error-message.is-visible {
    display: block;
}

/* Actions: submit button + back link */
.forgot-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
}

.btn-forgot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    padding: 10px 32px;
    font-family: var(--custom-font-space-grotesk, 'Space Grotesk', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--custom-color-primary-0, #ffffff);
    background-color: var(--custom-color-secondary-0, #0D0630);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--custom-transition-general, all 0.1s ease-in-out);
}

.btn-forgot:hover:not(:disabled) {
    transform: translateY(-2px);
    background-color: var(--custom-button-primary-bgcolor-hover, #0D0652);
}

.btn-forgot:active:not(:disabled) {
    transform: translateY(0);
}

.btn-forgot:disabled {
    background-color: var(--custom-button-general-bgcolor-disabled, #F5F5F5);
    color: var(--custom-color-gray, #898A8D);
    border: 1px solid var(--custom-button-general-bgcolor-active-darker, #EAEAEA);
    cursor: not-allowed;
    transform: none;
}

/* Back to login link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--custom-font-inter, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--custom-color-secondary-0, #0D0630);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 32px;
}

    .back-link:hover {
        color: var(--custom-color-secondary-25, #0D0652);
    }

    .back-link svg {
        width: 12px;
        height: 12px;
        transition: transform 0.2s ease;
        fill: var(--custom-color-secondary-0, #0D0630);
    }

    .back-link:hover svg {
        transform: translateX(-3px);
        fill: var(--custom-color-secondary-25, #0D0652);
    }

/* Success modal */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-popup {
    display: flex;
    background: white;
    border-radius: 40px;
    padding: 24px 30px;
    /* box-shadow: 0px 5px 26px #B2B2B2; */
    text-align: center;
    max-width: 373px;
    height: 399px;
    position: relative;
    font-family: 'Comfortaa', sans-serif;
    /* animation: fadeInUp 0.3s ease-out; */
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

    .custom-popup img {
        width: auto;
        margin-bottom: 25px;
    }

    .custom-popup .popup-title {
        font-size: 25px;
        color: #28a745;
        font-weight: bold;
        margin: 0 0 8px;
    }

    .custom-popup .popup-message {
        color: #0D0630;
        font-weight: bold;
        font-size: 14px;
        margin: 0;
    }

    .custom-popup .close-button {
        position: absolute;
        top: 14px;
        right: 19px;
        background: none;
        border: none;
        font-size: 19px;
        cursor: pointer;
        color: #0D0630;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media only screen and (max-width: 576px) {
    .forgot-logo {
        font-size: 40px;
        margin-bottom: 32px;
    }

    .forgot-card {
        padding: 32px 24px;
    }

    .forgot-title {
        font-size: 22px;
    }

    .btn-forgot {
        width: 100%;
    }

   
}

@media (max-width: 768px) {
    .forgot-bg-circle {
        display: none;
    }
}
