/* ============================================
   LABBAIT WEDDING APP - MAIN CSS
   ============================================ */

/* === CSS VARIABLES === */
:root {
    /* Colors */
    --primary-color: #a873ba;
    --primary-light: #c491d4;
    --primary-dark: #8a5aa1;
    --primary-darker: #6d4480;
    --secondary-color: #b884c4;
    --button-color: #b788c6;
    --accent-color: #d4a5e0;
    --accent-light: #e8c4f0;

    /* Backgrounds */
    --bg-primary: rgba(168, 115, 186, 0.05);
    --bg-secondary: rgba(168, 115, 186, 0.1);
    --bg-overlay: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.15);

    /* Text */
    --text-primary: #6d4480;
    --text-secondary: #8a5aa1;
    --text-light: rgba(109, 68, 128, 0.7);
    --text-white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Typography */
    --font-primary: 'Cairo', 'Noto Sans Arabic', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --border-radius-xl: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(168, 115, 186, 0.1);
    --shadow-md: 0 4px 15px rgba(168, 115, 186, 0.15);
    --shadow-lg: 0 10px 30px rgba(168, 115, 186, 0.2);
    --shadow-xl: 0 25px 50px rgba(168, 115, 186, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL STYLES === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background:
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%),
        url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    direction: rtl;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(168, 115, 186, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 145, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* === UTILITY CLASSES === */
.text-danger {
    color: #dc3545;
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.mt-1 {
    margin-top: 0.25rem;
}

/* === DIVIDER SECTION === */
.divider-section {
    display: flex;
    align-items: center;
    margin: var(--spacing-md) 0;
    position: relative;
    z-index: 2;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider-text {
    padding: 0 var(--spacing-md);
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

/* === FLOATING ELEMENTS === */
.floating-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-flowers::before {
    content: '🌸🌺💐🌹🌷';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    font-size: 20px;
    opacity: 0.1;
    animation: float-flowers 25s linear infinite;
    word-spacing: 100px;
    line-height: 200px;
}

/* === ANIMATIONS === */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes gentle-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

@keyframes float-flowers {
    0% { transform: translateY(100vh) translateX(-100px) rotate(0deg); }
    100% { transform: translateY(-100px) translateX(100px) rotate(360deg); }
}

@keyframes subtle-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, -60px); }
}

@keyframes float-stars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

@keyframes sparkle-animation {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(0);
        opacity: 0;
    }
}

@keyframes sparkle-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === RIPPLE EFFECT === */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* === SPARKLE EFFECT === */
.sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: sparkle-animation 1s ease-out forwards;
}

.sparkle::before {
    content: '✨';
    position: absolute;
    top: -3px;
    left: -8px;
    font-size: 12px;
    animation: sparkle-rotate 1s linear infinite;
}

/* === FLOATING HEARTS (for wedding effect) === */
.floating-hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    animation: float-heart linear forwards;
}

@keyframes float-heart {
    0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(-110vh) translateX(30px) scale(1.2); opacity: 0; }
}

/* === WEDDING PARTICLES (used by JS) === */
.wedding-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.wedding-particle {
    position: absolute;
    font-size: 14px;
    opacity: 0.7;
    animation-name: wedding-particle-float;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes wedding-particle-float {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-30px) translateX(10px) rotate(10deg); opacity: 1; }
    100% { transform: translateY(-60px) translateX(-10px) rotate(-10deg); opacity: 0.6; }
}

/* === PASSWORD TOGGLE STYLES === */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-control {
    padding-left: 50px;
}

.password-toggle-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
    background: rgba(168, 115, 186, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle-btn i {
    font-size: 16px;
    transition: var(--transition-fast);
}

.password-toggle-btn.showing {
    color: var(--primary-color);
}

.password-toggle-btn.showing i {
    color: var(--primary-color);
}

/* Password input focus adjustments */
.password-input-container .form-control:focus {
    padding-left: 50px;
}

/* Animation for icon change */
.password-toggle-btn i.fade-out {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

.password-toggle-btn i.fade-in {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
