* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --forgot-primary: rgb(34, 197, 94);
    --forgot-dark: rgb(22, 163, 74);
    --forgot-light: rgb(187, 247, 208);
    --forgot-accent: rgb(74, 222, 128);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --success-green: rgb(34, 197, 94);
}

body {
    background: linear-gradient(135deg, rgb(34, 197, 94) 0%, rgb(22, 163, 74) 100%);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Main Container */
.forgot-password-wrapper {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    position: relative;
}

/* Top Section - Header with Icon */
.forgot-header-section {
    background: linear-gradient(135deg, var(--forgot-primary) 0%, var(--forgot-dark) 100%);
    padding: 50px 40px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.forgot-header-section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.forgot-header-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -75px;
    left: -50px;
}

.forgot-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.forgot-icon i {
    font-size: 48px;
    color: white;
}

.forgot-header-section h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.forgot-header-section p {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Form Section */
.forgot-form-section {
    padding: 40px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: background 0.3s;
}

.step.active {
    background: var(--forgot-primary);
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-size: 15px;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-info {
    background-color: var(--forgot-light);
    color: var(--forgot-dark);
    border-left: 4px solid var(--forgot-primary);
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-form {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 16px 18px 16px 52px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--forgot-primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.form-help i {
    margin-right: 6px;
    font-size: 14px;
}

.btn-reset {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--forgot-primary) 0%, var(--forgot-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-reset:active {
    transform: translateY(0);
}

.btn-reset i {
    font-size: 18px;
}

.back-to-login {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.back-to-login a {
    color: var(--forgot-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 15px;
}

.back-to-login a:hover {
    color: var(--forgot-dark);
    gap: 12px;
}

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

/* Security Tips */
.security-tips {
    background: var(--forgot-light);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.security-tips h3 {
    font-size: 16px;
    color: var(--forgot-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-tips h3 i {
    font-size: 18px;
}

.security-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.security-tips li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.security-tips li:last-child {
    margin-bottom: 0;
}

.security-tips li::before {
    content: '\2022';
    color: var(--forgot-primary);
    font-weight: bold;
    position: absolute;
    left: 8px;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 40px;
    color: var(--success-green);
}

.success-state h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-state p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Responsive design */
@media (max-width: 600px) {
    .forgot-password-wrapper {
        border-radius: 16px;
    }

    .forgot-header-section {
        padding: 40px 30px 30px;
    }

    .forgot-form-section {
        padding: 30px 25px;
    }

    .forgot-icon {
        width: 80px;
        height: 80px;
    }

    .forgot-icon i {
        font-size: 36px;
    }

    .forgot-header-section h1 {
        font-size: 24px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-password-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.success-icon {
    animation: pulse 0.6s ease forwards;
}
