﻿
/* All CSS from previous implementation remains the same */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --error-color: #ef4444;
    --light-color: #f9fafb;
    --dark-color: #1f2937;
    --gray-color: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.Useridbody {
    font-family: 'Poppins', sans-serif;
    /*background-color: #f3f4f6;*/
    color: var(--dark-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 100vh;*/
    padding: 20px;
}

.forgot-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .forgot-container:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 8px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

.forgot-header {
    text-align: center;
    margin-bottom: 30px;
}

    .forgot-header h1 {
        font-size: 28px;
        font-weight: 600;
        color: var(--dark-color);
        margin-bottom: 10px;
    }

    .forgot-header p {
        color: var(--gray-color);
        font-size: 15px;
    }

.logo {
    margin-bottom: 20px;
}

    .logo svg {
        height: 40px;
        width: auto;
        fill: var(--primary-color);
    }

.recovery-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.recovery-option {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .recovery-option i {
        font-size: 18px;
    }

    .recovery-option.active {
        border-color: var(--primary-color);
        background-color: rgba(79, 70, 229, 0.05);
        box-shadow: 0 0 0 1px var(--primary-color);
    }

        .recovery-option.active i {
            color: var(--primary-color);
        }

.form-group {
    margin-bottom: 20px;
    position: relative;
    display: none;
}

    .form-group.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: var(--light-color);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        background-color: #4338ca;
    }

    .btn-primary:disabled {
        background-color: #a5b4fc;
        cursor: not-allowed;
    }

.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.warning {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

    .footer-links a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: #4338ca;
            text-decoration: underline;
        }

.separator {
    display: inline-block;
    margin: 0 10px;
    color: var(--gray-color);
}

.animation-text {
    position: relative;
    overflow: hidden;
}

    .animation-text::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .animation-text:hover::after {
        transform: scaleX(1);
    }

/* Loading animation */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .forgot-container {
        padding: 30px 20px;
    }

    .forgot-header h1 {
        font-size: 24px;
    }

    .recovery-options {
        flex-direction: column;
    }
}


/* CAPTCHA styles */
.captchaForget-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--dark-color);
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    padding: 8px 15px;
    border-radius: 5px;
    user-select: none;
    /*text-decoration: line-through;*/
    text-decoration-color: var(--error-color);
    text-decoration-thickness: 2px;
}

.captcha-actions {
    display: flex;
    gap: 10px;
}

.captcha-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
}

    .captcha-button:hover {
        background-color: rgba(79, 70, 229, 0.2);
        transform: scale(1.1);
    }

    .captcha-button.active {
        color: white;
        background-color: var(--primary-color);
    }

.captcha-input {
    margin-top: 10px;
}

/* Loading animation for voice playback */
.voice-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@media (max-width: 576px) {
    .forgot-container {
        padding: 30px 20px;
    }

    .forgot-header h1 {
        font-size: 24px;
    }

    .recovery-options {
        flex-direction: column;
    }

    .captcha-code {
        font-size: 20px;
        padding: 6px 10px;
    }
}