/* ================================================
   DINHA PARQUE - MODERN CSS
   Professional & Secure Design
   ================================================ */

:root {
    --primary: #50DD60;
    --primary-dark: #27672E;
    --primary-light: #7FE88C;
    --gradient-primary: linear-gradient(135deg, #50DD60 0%, #27672E 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(80, 221, 96, 0.8) 0%, rgba(39, 103, 46, 0.9) 100%);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Animated Background */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float linear infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 30%;
    animation-duration: 20s;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 50%;
    animation-duration: 30s;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    width: 50px;
    height: 50px;
    left: 70%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 85%;
    animation-duration: 28s;
    animation-delay: 5s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Login Container */
.vh-100 {
    position: relative;
    z-index: 1;
}

/* Enhanced Card */
.login-card {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: slideInScale 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-card .card-body {
    padding: 3rem 2.5rem !important;
}

/* Logo/Icon Animation */
.login-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(80, 221, 96, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(80, 221, 96, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(80, 221, 96, 0.6);
    }
}

/* Typography */
.login-title {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-subtitle {
    color: #6C757D;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Enhanced Input */
.form-outline {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    background: #F8F9FC;
    border: 2px solid #E3E6F0;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #2C3E50;
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(80, 221, 96, 0.15);
    transform: translateY(-2px);
}

.form-control:disabled {
    background: #E9ECEF;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Input Icon */
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6C757D;
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control:focus ~ .input-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Label */
.form-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6C757D;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
    background: white;
    padding: 0 0.5rem;
    font-weight: 600;
}

/* Enhanced Button */
.login-btn {
    background: var(--gradient-primary) !important;
    border: none !important;
    padding: 1rem 3rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(80, 221, 96, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(80, 221, 96, 0.5);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.login-btn i {
    margin-right: 0.5rem;
}

/* Enhanced Alert */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease;
    border-left: 4px solid;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 74, 59, 0.1) 0%, rgba(231, 74, 59, 0.05) 100%);
    color: #E74A3B;
    border-left-color: #E74A3B;
}

.alert strong {
    font-weight: 700;
}

/* Footer */
.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E3E6F0;
}

.login-footer p {
    color: #6C757D;
    font-size: 0.85rem;
    margin: 0;
}

.login-footer i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(80, 221, 96, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.security-badge i {
    color: var(--primary);
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-card .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .login-btn {
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }
}

/* Accessibility */
.form-control:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .particles,
    .login-background {
        display: none;
    }
}
