/* V2 Forgot Password Page Styles */

.v2-forgot-password-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--v2-bg);
    color: var(--v2-text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .v2-forgot-password-main {
        padding-left: 10rem;
        padding-right: 10rem;
    }
}

/* Breadcrumbs */
.v2-forgot-password-breadcrumbs {
    width: 100%;
    max-width: 32rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.v2-forgot-password-breadcrumbs a {
    color: var(--text-muted);
    transition: color 0.3s;
    text-decoration: none;
}

.v2-forgot-password-breadcrumbs a:hover {
    color: var(--v2-primary);
}

.v2-forgot-password-breadcrumb-separator {
    margin: 0 0.5rem;
    font-size: 1rem;
}

.v2-forgot-password-breadcrumb-current {
    color: var(--v2-text);
}

/* Card Container */
.v2-forgot-password-card-wrapper {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

/* Card */
.v2-forgot-password-card {
    position: relative;
    background-color: var(--v2-secondary);
    border: 1px solid var(--v2-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .v2-forgot-password-card {
        padding: 3rem;
    }
}

/* Gradient Top Border */
.v2-forgot-password-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--v2-primary),
        transparent
    );
    opacity: 0.5;
}

/* Glow Effect */
.v2-forgot-password-glow {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 12rem;
    height: 12rem;
    background-color: color-mix(in srgb, var(--v2-primary), transparent 95%);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

/* Header Section */
.v2-forgot-password-header {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.v2-forgot-password-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background-color: var(--v2-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--v2-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.v2-forgot-password-icon {
    color: var(--v2-primary);
    font-size: 2rem;
}

.v2-forgot-password-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--v2-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.v2-forgot-password-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.v2-forgot-password-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.v2-forgot-password-field {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[dir="rtl"] .v2-forgot-password-field {
    text-align: right;
}

.v2-forgot-password-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--v2-text);
    padding: 0 0.25rem;
}

.v2-forgot-password-input-group {
    position: relative;
}

.v2-forgot-password-input {
    width: 100%;
    background-color: var(--v2-bg);
    border: 1px solid var(--v2-border);
    color: var(--v2-text);
    font-size: 1rem;
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem 3rem;
    outline: none;
    transition: all 0.3s;
}

[dir="rtl"] .v2-forgot-password-input {
    padding: 1rem 3rem 1rem 1rem;
}

.v2-forgot-password-input:focus {
    border-color: var(--v2-primary);
    box-shadow: 0 0 0 1px var(--v2-primary);
}

.v2-forgot-password-input::placeholder {
    color: #555;
}

.v2-forgot-password-input-icon-wrapper {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

[dir="rtl"] .v2-forgot-password-input-icon-wrapper {
    left: auto;
    right: 1rem;
}

.v2-forgot-password-input-group:focus-within
    .v2-forgot-password-input-icon-wrapper {
    color: var(--v2-primary);
}

.v2-forgot-password-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Submit Button */
.v2-forgot-password-submit-btn {
    width: 100%;
    height: 54px;
    background-color: var(--v2-primary);
    color: var(--v2-bg);
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px
        color-mix(in srgb, var(--v2-primary), transparent 80%);
}

.v2-forgot-password-submit-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 25px
        color-mix(in srgb, var(--v2-primary), transparent 70%);
    transform: translateY(-2px);
}

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

.v2-forgot-password-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer Link Area */
.v2-forgot-password-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--v2-border);
    width: 100%;
}

.v2-forgot-password-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
    font-weight: 500;
}

.v2-forgot-password-back-link:hover {
    color: var(--v2-text);
}

.v2-forgot-password-back-link .v2-forgot-password-back-arrow {
    font-size: 0.875rem;
    transition: transform 0.3s;
}

.v2-forgot-password-back-link:hover .v2-forgot-password-back-arrow {
    transform: translateX(-4px);
}

[dir="rtl"] .v2-forgot-password-back-link:hover .v2-forgot-password-back-arrow {
    transform: translateX(4px);
}

/* Sign Up Area */
.v2-forgot-password-signup {
    text-align: center;
    margin-top: 2rem;
}

.v2-forgot-password-signup-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.v2-forgot-password-signup-link {
    color: var(--v2-primary);
    font-weight: 700;
    text-decoration: none;
    margin-inline-start: 0.25rem;
}

.v2-forgot-password-signup-link:hover {
    text-decoration: underline;
}

/* Error/Success Messages */
.v2-forgot-password-error {
    font-size: 0.75rem;
    color: var(--v2-error);
    margin-top: 0.25rem;
    padding: 0 0.25rem;
}

.v2-forgot-password-success {
    background-color: color-mix(in srgb, var(--v2-primary), transparent 90%);
    border: 1px solid var(--v2-primary);
    color: var(--v2-text);
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
