
        :root {
            --primary-color: #1e4d92;
            --secondary-color: #2c8ac8;
            --accent-color: #4ecdc4;
            --dark-color: #2c3e50;
            --light-color: #ecf0f1;
            --danger-color: #e74c3c;
            --success-color: #2ecc71;
            --warning-color: #f39c12;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat', sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #1e5799 0%, #207cca 35%, #2989d8 50%, #7db9e8 100%);
        }

        /* Weather scene container */
        .weather-scene {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            overflow: hidden;
        }

        /* Animated sky background */
        .sky {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, #1e5799 0%, #207cca 35%, #2989d8 50%, #7db9e8 100%);
            z-index: 1;
        }

        /* Sun effect */
        .sun {
            position: absolute;
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, #ffd700 0%, #ff8c00 70%);
            border-radius: 50%;
            top: 15%;
            right: 15%;
            box-shadow: 0 0 60px #ff8c00;
            z-index: 2;
            animation: sun-pulse 5s infinite alternate;
        }

        @keyframes sun-pulse {
            0% {
                transform: scale(1);
                opacity: 0.8;
            }

            100% {
                transform: scale(1.1);
                opacity: 1;
            }
        }

        /* Sun rays */
        .sun::after {
            content: '';
            position: absolute;
            top: -30px;
            left: -30px;
            right: -30px;
            bottom: -30px;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 140, 0, 0) 70%);
            border-radius: 50%;
            z-index: -1;
            animation: sun-rays 3s infinite alternate;
        }

        @keyframes sun-rays {
            0% {
                transform: scale(1);
                opacity: 0.3;
            }

            100% {
                transform: scale(1.2);
                opacity: 0.5;
            }
        }

        /* Enhanced clouds */
        .clouds {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 3;
        }

        .cloud {
            position: absolute;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50px;
            filter: blur(3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            animation: float linear infinite;
        }

        .cloud::before,
        .cloud::after {
            content: '';
            position: absolute;
            background: inherit;
            border-radius: 50%;
        }

        .cloud.small {
            width: 80px;
            height: 30px;
            opacity: 0.8;
        }

        .cloud.medium {
            width: 120px;
            height: 45px;
            opacity: 0.9;
        }

        .cloud.large {
            width: 180px;
            height: 70px;
            opacity: 1;
        }

        .cloud.small::before {
            width: 35px;
            height: 35px;
            top: -20px;
            left: 15px;
        }

        .cloud.small::after {
            width: 25px;
            height: 25px;
            top: -15px;
            left: 35px;
        }

        .cloud.medium::before {
            width: 60px;
            height: 60px;
            top: -30px;
            left: 20px;
        }

        .cloud.medium::after {
            width: 40px;
            height: 40px;
            top: -20px;
            left: 55px;
        }

        .cloud.large::before {
            width: 90px;
            height: 90px;
            top: -45px;
            left: 30px;
        }

        .cloud.large::after {
            width: 60px;
            height: 60px;
            top: -30px;
            left: 80px;
        }

        @keyframes float {
            0% {
                transform: translateX(-200px);
            }

            100% {
                transform: translateX(calc(100vw + 200px));
            }
        }

        /* Rain effect */
        .rain {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 4;
            opacity: 0.7;
        }

        .drop {
            position: absolute;
            width: 2px;
            height: 20px;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7));
            animation: rain-fall linear infinite;
        }

        @keyframes rain-fall {
            0% {
                transform: translateY(-100px);
                opacity: 0;
            }

            10% {
                opacity: 1;
            }

            100% {
                transform: translateY(100vh);
                opacity: 0.5;
            }
        }

        /* Lightning effect */
        .lightning {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 5;
            opacity: 0;
            background: rgba(255, 255, 255, 0.2);
            pointer-events: none;
        }

        @keyframes lightning-flash {

            0%,
            100% {
                opacity: 0;
            }

            10%,
            30% {
                opacity: 0.3;
            }

            15% {
                opacity: 0.9;
            }
        }

        /* Login container */
        .login-container {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            width: 100%;
            max-width: 450px;
            position: relative;
            z-index: 10;
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: container-appear 0.8s ease-out forwards;
        }

        @keyframes container-appear {
            0% {
                transform: translateY(40px) scale(0.95);
                opacity: 0;
            }

            100% {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .login-header {
            padding: 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .login-header::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"><path d="M0 0l100 100M20 0l80 100M40 0l60 100M60 0l40 100M80 0l20 100" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></svg>');
            background-size: 20px 20px;
            opacity: 0.3;
            animation: weatherPattern 20s linear infinite;
        }

        @keyframes weatherPattern {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: 40px 40px;
            }
        }

        .login-header img {
            height: 70px;
            width: auto;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
            transition: transform 0.3s ease;
        }

        .login-header img:hover {
            transform: scale(1.05);
        }

        .login-header h1 {
            color: white;
            font-size: 28px;
            margin: 0;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            letter-spacing: 0.5px;
        }

        .login-header p {
            color: rgba(255, 255, 255, 0.9);
            margin-top: 10px;
            font-weight: 300;
            font-size: 16px;
        }

        .login-form {
            padding: 40px 30px;
            background: rgba(255, 255, 255, 0.1);
        }

        .form-floating {
            margin-bottom: 25px;
        }

        .form-floating input {
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 15px 20px;
            height: 60px;
            font-size: 16px;
            transition: all 0.3s ease;
            color: var(--dark-color);
            font-weight: 500;
        }

        .form-floating input:focus {
            background: rgba(255, 255, 255, 1);
            border-color: var(--accent-color);
            box-shadow: 0 0 20px rgba(78, 205, 196, 0.2);
            transform: translateY(-2px);
        }

        .form-floating label {
            color: var(--dark-color);
            padding-left: 20px;
            font-weight: 500;
            opacity: 0.8;
        }

        .form-check {
            margin-bottom: 25px;
        }

        .form-check-input {
            width: 20px;
            height: 20px;
            margin-top: 0.15em;
            border: 2px solid rgba(255, 255, 255, 0.4);
        }

        .form-check-input:checked {
            background-color: var(--accent-color);
            border-color: var(--accent-color);
        }

        .form-check-label {
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
            padding-left: 8px;
        }

        .btn-login {
            background: linear-gradient(135deg, var(--accent-color), #2ecc71);
            border: none;
            border-radius: 12px;
            padding: 15px;
            font-weight: 600;
            font-size: 16px;
            width: 100%;
            color: white;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
            margin-top: 10px;
        }

        .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: 0.5s;
        }

        .btn-login:hover::before {
            left: 100%;
        }

        .btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
        }

        .alert {
            border-radius: 12px;
            margin-bottom: 25px;
            animation: shake 0.5s ease-in-out;
            border: none;
            background: rgba(231, 76, 60, 0.1);
            border-left: 4px solid var(--danger-color);
            padding: 15px;
        }

        .alert i {
            color: var(--danger-color);
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-10px);
            }

            75% {
                transform: translateX(10px);
            }
        }

        .footer-text {
            text-align: center;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            margin-top: 25px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .footer-text p {
            margin-bottom: 5px;
            font-weight: 500;
        }

        .footer-text small {
            opacity: 0.8;
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(44, 62, 80, 0.9);
            backdrop-filter: blur(10px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-top: 5px solid var(--accent-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Weather status indicator */
        .weather-status {
            position: absolute;
            top: 20px;
            left: 20px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
            background: rgba(0, 0, 0, 0.2);
            padding: 10px 15px;
            border-radius: 50px;
            backdrop-filter: blur(5px);
            z-index: 10;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        .weather-status i {
            font-size: 20px;
            color: var(--accent-color);
        }

        /* Responsive adjustments */
        @media (max-width: 576px) {
            .login-container {
                max-width: 100%;
            }

            .login-header {
                padding: 25px 20px;
            }

            .login-header img {
                height: 50px;
            }

            .login-header h1 {
                font-size: 22px;
            }

            .login-form {
                padding: 30px 20px;
            }

            .weather-status {
                top: 10px;
                left: 10px;
                font-size: 13px;
                padding: 8px 12px;
            }

            .weather-status i {
                font-size: 16px;
            }
        }

        .logo-container {
            text-align: center;
            margin-bottom: 15px;
        }

        .agrovista-logo {
            max-width: 200px;
            height: auto;
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
            animation: logo-entrance 1s ease-out;
        }

        @keyframes logo-entrance {
            0% {
                transform: translateY(-20px);
                opacity: 0;
            }

            100% {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 10px;
        }

        .footer-link {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 12px;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .footer-link:hover {
            color: rgba(255, 255, 255, 1);
        }

        .footer-link i {
            font-size: 10px;
        }

        /* Cookie consent styles */
        .cookie-consent {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.95);
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            max-width: 90%;
            width: 400px;
            display: none;
        }

        .cookie-consent p {
            margin-bottom: 15px;
            color: var(--dark-color);
            font-size: 14px;
        }

        .cookie-consent .btn {
            padding: 8px 20px;
            border-radius: 8px;
            font-weight: 500;
        }

        /* Bookmark modal styles */
        .bookmark-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .bookmark-content {
            background: white;
            padding: 30px;
            border-radius: 15px;
            max-width: 90%;
            width: 500px;
            position: relative;
        }

        .bookmark-content h3 {
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .bookmark-steps {
            margin-bottom: 20px;
        }

        .bookmark-steps ol {
            padding-left: 20px;
        }

        .bookmark-steps li {
            margin-bottom: 10px;
            color: var(--dark-color);
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--dark-color);
            cursor: pointer;
        }

        .device-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .device-tab {
            padding: 8px 15px;
            border: none;
            background: #f0f0f0;
            border-radius: 8px;
            cursor: pointer;
        }

        .device-tab.active {
            background: var(--primary-color);
            color: white;
        }

        .device-content {
            display: none;
        }

        .device-content.active {
            display: block;
        }

        /* Disclaimer modal styles */
        .disclaimer-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .disclaimer-content {
            background: white;
            padding: 30px;
            border-radius: 15px;
            max-width: 90%;
            width: 600px;
            position: relative;
            max-height: 80vh;
            overflow-y: auto;
        }

        .disclaimer-content h3 {
            color: var(--warning-color);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .disclaimer-content p {
            color: var(--dark-color);
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .disclaimer-content .important-notice {
            font-weight: 600;
            color: var(--danger-color);
            background: rgba(231, 76, 60, 0.1);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--danger-color);
        }

        .close-disclaimer {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--dark-color);
            cursor: pointer;
            padding: 5px;
            line-height: 1;
        }

        .close-disclaimer:hover {
            color: var(--danger-color);
        }

        .disclaimer-link {
            color: var(--warning-color);
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .disclaimer-link:hover {
            color: var(--danger-color);
            text-decoration: underline;
        }
   
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .custom-modal-content {
            background-color: #fff;
            margin: 10% auto;
            padding: 20px;
            border-radius: 4px;
            width: 80%;
            max-width: 600px;
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Feature Update Modal Styles */
        #featureUpdateModal {
            z-index: 3000 !important;
        }
        #featureUpdateModal .modal-dialog {
            z-index: 3001 !important;
        }
        #featureUpdateModal .modal-content {
            background-color: #ffffff !important;
            z-index: 3002 !important;
            border: none;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }
        #featureUpdateModal .modal-backdrop {
            z-index: 2999 !important;
            background-color: rgba(0, 0, 0, 0.7) !important;
        }
        #featureUpdateModal.show {
            display: block !important;
        }
        
        /* New Features Link Styling */
        .new-features-link {
            background: linear-gradient(135deg, #4a90e2, #357abd);
            color: #ffffff !important;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
            box-shadow: 0 3px 12px rgba(74, 144, 226, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.2);
            white-space: nowrap;
        }
        
        .new-features-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 18px rgba(74, 144, 226, 0.4);
            background: linear-gradient(135deg, #357abd, #2a5f94);
            color: #ffffff !important;
        }
        
        .new-features-link i {
            font-size: 14px;
        }
        
        /* Responsive adjustments for footer links */
        @media (max-width: 576px) {
            .footer-links {
                flex-direction: column;
                gap: 10px !important;
                align-items: stretch;
            }
            
            .footer-link,
            .disclaimer-link,
            .new-features-link {
                text-align: center;
                justify-content: center;
                width: 100%;
            }
            
            .new-features-link {
                padding: 10px 16px;
                font-size: 14px;
            }
        }
        
        @media (max-width: 768px) and (min-width: 577px) {
            .footer-links {
                flex-wrap: wrap;
                gap: 10px !important;
            }
            
            .new-features-link {
                flex: 1 1 100%;
                justify-content: center;
                margin-top: 5px;
            }
        }
        
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-3px);
            }
        }
        
        /* Feature Update Modal Enhancements */
        #featureUpdateModal .modal-body {
            padding: 25px;
        }
        
        #featureUpdateModal .feature-item {
            border-left: 3px solid #007bff;
            padding-left: 15px;
            transition: all 0.3s ease;
        }
        
        #featureUpdateModal .feature-item:hover {
            border-left-color: #0056b3;
            padding-left: 18px;
        }
        
        #featureUpdateModal .location-hint {
            font-size: 13px;
            line-height: 1.5;
            border-left: 3px solid #2196F3;
        }
        
        #featureUpdateModal .location-hint i {
            font-size: 14px;
        }
        
        #featureUpdateModal .modal-title {
            font-weight: 700;
            color: #2c3e50;
        }
        
        #featureUpdateModal h6 {
            color: #495057;
            font-weight: 600;
            margin-bottom: 20px;
        }
  
/* Feature modal inline styles moved to CSS */
#featureUpdateModal {
    z-index: 3000 !important;
}

#featureUpdateModal .modal-dialog {
    z-index: 3001 !important;
}

#featureUpdateModal .modal-content {
    background-color: #ffffff !important;
    z-index: 3002 !important;
}

.feature-icon {
    font-size: 24px;
}

.feature-item strong {
    font-size: 16px;
    color: #2c3e50;
}

.feature-item .mb-1 {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.disclaimer-content a[target='_blank'] {
    color: var(--primary-color);
    text-decoration: underline;
}

.location-hint {
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 6px;
}

.location-hint-warning {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}
