/* ====================================================
   MERO LOVE - FORGOT PASSWORD PAGE STYLES
   ==================================================== */

/* Modern CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #121212;
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-dark: rgba(30, 30, 30, 0.98);
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border-light: rgba(99, 110, 114, 0.2);
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 35px 70px rgba(0, 0, 0, 0.25);
    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 10px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 25s infinite linear;
}

.circle-1 { 
    width: 400px; 
    height: 400px; 
    top: -50px; 
    left: -100px; 
    animation-delay: 0s; 
}
.circle-2 { 
    width: 300px; 
    height: 300px; 
    top: 50%; 
    right: -50px; 
    animation-delay: -8s; 
}
.circle-3 { 
    width: 200px; 
    height: 200px; 
    bottom: -50px; 
    left: 20%; 
    animation-delay: -16s; 
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    33% { 
        transform: translate(30px, -50px) rotate(120deg); 
    }
    66% { 
        transform: translate(-20px, 30px) rotate(240deg); 
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5);
    animation: pulse 3s infinite;
    position: relative;
    overflow: hidden;
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 30px 60px rgba(102, 126, 234, 0.7); 
    }
}

@keyframes shine {
    0% { 
        transform: translateX(-100%) rotate(45deg); 
    }
    100% { 
        transform: translateX(100%) rotate(45deg); 
    }
}

.logo-circle i {
    font-size: 48px;
    color: white;
    position: relative;
    z-index: 1;
}

.logo-text h1 {
    color: white;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(15px, 3vw, 18px);
    font-weight: 400;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Auth Card */
.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: clamp(40px, 7vw, 60px);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px 4px 0 0;
}

.auth-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 45px;
}

.form-header h2 {
    color: var(--text-dark);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.form-header p {
    color: var(--text-light);
    font-size: 17px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 15px 30px rgba(79, 172, 254, 0.4);
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-icon i {
    font-size: 48px;
    color: white;
}

.success-state h3 {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.success-state p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

.info-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
}

.info-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
}

.info-title i {
    color: #667eea;
    font-size: 20px;
}

.info-text {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Form Styles */
.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 20px;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 22px 25px 22px 60px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    background: white;
    transform: translateY(-2px);
    padding-left: 65px;
}

.form-input:focus + .input-icon {
    transform: translateY(-50%) scale(1.1);
    color: #764ba2;
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 22px 30px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    letter-spacing: 1px;
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    margin-top: 20px;
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(245, 87, 108, 0.4);
}

/* Messages */
.message-box {
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    animation: slideIn 0.5s ease-out;
    border-left: 5px solid;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.error-message {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    border-left-color: #ff6b6b;
    color: #d63031;
}

.success-message {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-left-color: #27ae60;
    color: #2ecc71;
}

.message-box i {
    font-size: 24px;
    margin-right: 12px;
    vertical-align: middle;
}

.message-box p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Links */
.form-links {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.form-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
    color: var(--text-light);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.02);
}

.form-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.form-link i {
    font-size: 18px;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
}

.btn.loading span {
    visibility: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tips Section */
.tips-section {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: var(--radius-lg);
    border-left: 5px solid #f39c12;
}

.tips-section h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d68910;
    margin-bottom: 15px;
    font-size: 16px;
}

.tips-section ul {
    list-style: none;
    padding-left: 0;
}

.tips-section li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.tips-section li i {
    color: #f39c12;
    margin-top: 2px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 576px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .container {
        max-width: 100%;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .logo-circle {
        width: 80px;
        height: 80px;
    }

    .logo-circle i {
        font-size: 36px;
    }

    .btn {
        padding: 20px;
        font-size: 16px;
    }

    .form-link {
        display: block;
        margin: 15px 0;
        text-align: center;
    }

    .bg-circle {
        display: none;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: var(--card-dark);
        --text-dark: #f8f9fa;
        --text-light: #adb5bd;
        --border-light: rgba(255, 255, 255, 0.1);
    }

    .auth-card {
        background: var(--card-dark);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .form-input {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-dark);
        border-color: var(--border-light);
    }

    .form-input:focus {
        background: rgba(255, 255, 255, 0.1);
    }

    .info-box {
        background: rgba(52, 152, 219, 0.1);
        border-color: rgba(52, 152, 219, 0.3);
    }

    .tips-section {
        background: rgba(243, 156, 18, 0.1);
    }

    .form-link {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Shake Animation */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}