/* ============================================
   Whats Dashboard - Forget Password Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #27C1BB;
    --primary-dark: #0E8F8A;
    --primary-light: #5DD8D3;
    --bg-main: #F3FBFB;
    --bg-white: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-primary: #0F3E3B;
    --text-secondary: #6FAFA9;
    --text-muted: #9BC9C5;
    --orange: #F97316;
    --blue: #3B82F6;
    --green: #22C55E;
    --purple: #A855F7;
    --pink: #EC4899;
    --teal: #14B8A6;
    --indigo: #6366F1;
    --red: #EF4444;
    --yellow: #EAB308;
    --shadow: 0 8px 24px rgba(14, 143, 138, 0.25);
    --shadow-lg: 0 20px 40px rgba(14, 143, 138, 0.2);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* General styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    display: flex;
    min-height: 100vh;
    background: var(--bg-white);
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particles {
    position: relative;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.2;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 80%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 30%; animation-delay: 5s; }
.particle:nth-child(7) { top: 10%; left: 90%; animation-delay: 6s; }
.particle:nth-child(8) { top: 90%; left: 10%; animation-delay: 7s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.5; }
}

/* Logo styling */
.logo {
    position: fixed;
    top: 30px;
    right: 235px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Layout */
.left-side {
    flex: 1;
    display: flex;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0A6B67 100%);
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.left-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: grain 20s linear infinite;
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.animated-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 500px;
}

/* WhatsApp Animation */
.whatsapp-animation {
    margin-bottom: 40px;
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.message-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: bubbleFloat 3s ease-in-out infinite;
}

.message-bubble i {
    font-size: 3rem;
    color: white;
}

.bubble-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-80%);
    animation-delay: 0s;
}

.bubble-2 {
    top: 60px;
    right: 50%;
    transform: translateX(50%);
    animation-delay: 0.5s;
}

.bubble-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.bubble-2 .dots {
    display: flex;
    gap: 5px;
}

.bubble-2 .dots span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: dotsPulse 1.5s ease-in-out infinite;
}

.bubble-2 .dots span:nth-child(2) { animation-delay: 0.2s; }
.bubble-2 .dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes dotsPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Welcome Text */
.welcome-text {
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(45deg, #ffffff, #F3FBFB, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    color: white;
}

/* Recovery Features */
.recovery-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    animation: iconBounce 2s ease-in-out infinite;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-white);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Animation classes */
.animate-fade-in {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.animate-slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-input {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.animate-button {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

/* Content styling */
.content {
    width: 100%;
    max-width: 500px;
    text-align: right;
}

h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Input fields */
.input-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 18px 15px;
    border: 2px solid var(--text-muted);
    border-radius: var(--radius);
    outline: none;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-main);
    direction: rtl;
}

.input-group input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(39, 193, 187, 0.1);
    transform: translateY(-2px);
}

.floating-label {
    position: absolute;
    right: 15px;
    top: 18px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
    font-size: 16px;
}

.input-group input:focus + .floating-label,
.input-group input:not(:placeholder-shown) + .floating-label {
    top: -10px;
    font-size: 12px;
    color: var(--primary);
    background: var(--bg-white);
    font-weight: 600;
}

/* Button styling */
button[type="submit"] {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

button[type="submit"]:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Options link */
.options {
    margin-top: 25px;
    text-align: center;
}

.options a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.options a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Message styling */
.error-message {
    color: var(--red);
    text-align: right;
    margin: 15px 0;
    padding: 15px;
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    border-radius: var(--radius);
    display: none;
    font-weight: 500;
}

.success-message {
    color: var(--green);
    text-align: right;
    margin: 15px 0;
    padding: 15px;
    background: #F0FDF4;
    border: 1px solid #DCFCE7;
    border-radius: var(--radius);
    display: none;
    font-weight: 500;
}

.info-message {
    color: var(--blue);
    text-align: right;
    margin: 15px 0;
    padding: 15px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: var(--radius);
    display: none;
    font-weight: 500;
}

/* Loading Animation */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid rgba(39, 193, 187, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--primary);
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }
    
    .left-side {
        display: none;
    }
    
    .right-side {
        padding: 80px 20px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .logo {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .logo img {
        height: 50px;
    }

    .welcome-text h1 {
        font-size: 2rem;
    }

    .recovery-features {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .input-group {
        margin-bottom: 20px;
    }
    
    .input-group input {
        padding: 15px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    p {
        font-size: 14px;
    }
    
    button[type="submit"] {
        padding: 15px;
    }

    .welcome-text h1 {
        font-size: 1.8rem;
    }

    .recovery-features {
        flex-direction: column;
        gap: 15px;
    }
}