/* ============================================================
 * CAPAVIDA Community Hero Login Page Styles
 * Friendly, welcoming, community-focused design
 * ============================================================ */

:root {
    --hero-primary: #3b82f6;
    --hero-secondary: #60a5fa;
    --hero-accent: #2563eb;
    --hero-success: #10b981;
    --hero-warning: #f59e0b;
    --hero-purple: #8b5cf6;
    --hero-pink: #ec4899;
}

body {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 35%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: floatHero 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatHero {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(10px, -10px) scale(1.02); }
    66% { transform: translate(-10px, 10px) scale(0.98); }
}

.hero-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.hero-login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    backdrop-filter: blur(10px);
}

.hero-login-left {
    background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-purple) 100%);
    padding: 60px 40px;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: rotateHero 40s linear infinite;
}

@keyframes rotateHero {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-login-left-content {
    position: relative;
    z-index: 1;
}

.hero-heart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    animation: pulseHero 2.5s ease-in-out infinite;
}

@keyframes pulseHero {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); 
    }
    50% { 
        transform: scale(1.08); 
        box-shadow: 0 0 0 25px rgba(139, 92, 246, 0); 
    }
}

.hero-heart-icon i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    text-align: center;
    opacity: 0.95;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.hero-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    opacity: 0.95;
}

.hero-features li i {
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.hero-badge-highlight {
    display: inline-flex;
    align-items: center;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
}

.hero-badge-highlight i {
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-login-right {
    flex: 1;
    padding: 60px 50px;
    background: white;
}

.hero-logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.hero-logo-section img {
    max-width: 200px;
    height: auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-purple) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-login-header h4 {
    color: var(--hero-accent);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-login-header p {
    color: #64748b;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--hero-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    color: var(--hero-accent);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.hero-login-btn {
    background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-purple) 100%);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    color: white !important;
}

.hero-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, var(--hero-purple) 0%, var(--hero-primary) 100%);
    color: white !important;
}

.hero-login-btn:active {
    transform: translateY(0);
}

.input-group-text {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-left: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group-text:hover {
    background: #e2e8f0;
}

.form-password-toggle .form-control {
    border-right: none;
}

.other-portal-link {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: var(--hero-accent);
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.other-portal-link:hover {
    background: #dbeafe;
    border-color: var(--hero-primary);
    color: var(--hero-accent);
    text-decoration: none;
    transform: translateY(-2px);
}

.welcome-notice {
    background: #dbeafe;
    border-left: 4px solid var(--hero-primary);
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
}

.welcome-notice i {
    margin-right: 8px;
    color: var(--hero-primary);
}

.register-link {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 10px;
    margin-top: 15px;
}

.register-link p {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 14px;
}

.register-link a {
    color: var(--hero-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: var(--hero-purple);
    text-decoration: underline;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-selector select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-selector select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

.language-selector option {
    background: white;
    color: #1f2937;
}

@media (max-width: 768px) {
    .hero-login-card {
        flex-direction: column;
    }

    .hero-login-left {
        padding: 40px 30px;
    }

    .hero-login-right {
        padding: 40px 30px;
    }

    .hero-features {
        margin: 20px 0;
    }

    .language-selector {
        position: static;
        margin-bottom: 20px;
        text-align: center;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Icon animations */
.fa-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(0.9); }
    20%, 40%, 60%, 80% { transform: scale(1.1); }
    50%, 70% { transform: scale(1.05); }
}
