* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-green: #10b981;
            --dark-green: #059669;
            --light-green: #34d399;
            --emerald: #047857;
            --bg-gradient-start: #0f172a;
            --bg-gradient-end: #1e293b;
            --card-bg: rgba(255, 255, 255, 0.98);
            --shadow-color: rgba(16, 185, 129, 0.3);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
            min-height: 100vh;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        body::before {
            content: '';
            position: absolute;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
            opacity: 0.15;
            top: -200px;
            left: -200px;
            animation: float 20s infinite ease-in-out;
        }

        body::after {
            content: '';
            position: absolute;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--light-green) 0%, transparent 70%);
            opacity: 0.1;
            bottom: -150px;
            right: -150px;
            animation: float 15s infinite ease-in-out reverse;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(50px, 50px) scale(1.1); }
        }

        .login-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            max-width: 950px;
            width: 100%;
            background: var(--card-bg);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 
                        0 0 0 1px rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 1;
            animation: slideUp 0.6s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .left-panel {
            padding: 35px 30px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: white;
        }

        .logo-container {
            text-align: center;
            margin-bottom: 20px;
            animation: fadeIn 0.8s ease-out 0.2s both;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .school-logo {
            width: 80px;
            height: 80px;
            object-fit: contain;
            filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.2));
            transition: transform 0.3s ease;
        }

        .school-logo:hover {
            transform: scale(1.05) rotate(5deg);
        }

        .school-title {
            font-size: 1.25rem;
            font-weight: 800;
            color: #1f2937;
            text-align: center;
            margin: 15px 0 8px;
            line-height: 1.3;
            animation: fadeIn 0.8s ease-out 0.3s both;
        }

        .school-subtitle {
            font-size: 1rem;
            font-weight: 600;
            color: var(--primary-green);
            text-align: center;
            margin-bottom: 25px;
            animation: fadeIn 0.8s ease-out 0.4s both;
        }

        .error-container {
            margin-bottom: 20px;
            animation: shake 0.5s ease-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        .alert-danger {
            background: #fee2e2;
            border: 2px solid #fecaca;
            border-radius: 12px;
            padding: 12px 15px;
            color: #991b1b;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .alert-danger i {
            font-size: 1.1rem;
            color: #dc2626;
        }

        .login-form {
            animation: fadeIn 0.8s ease-out 0.5s both;
        }

        .input-group {
            position: relative;
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 8px;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            color: #9ca3af;
            font-size: 1rem;
            transition: color 0.3s ease;
            z-index: 2;
        }

        .form-input {
            width: 100%;
            padding: 14px 18px 14px 48px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            background: #f9fafb;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-green);
            background: white;
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
        }

        .form-input:focus + .input-icon {
            color: var(--primary-green);
        }

        .btn-login {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px var(--shadow-color);
            margin-top: 8px;
            letter-spacing: 0.5px;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 30px var(--shadow-color);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .right-panel {
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
            padding: 40px 35px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .right-panel::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            top: -100px;
            right: -100px;
            animation: pulse 4s infinite ease-in-out;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.2); opacity: 0.8; }
        }

        .image-container {
            width: 100%;
            max-width: 100%;
            margin-bottom: 30px;
            animation: fadeIn 1s ease-out 0.6s both;
            position: relative;
            z-index: 1;
        }

        .school-image {
            width: 100%;
            height: auto;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease;
        }

        .school-image:hover {
            transform: scale(1.02);
        }

        .motto {
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
            line-height: 1.6;
            max-width: 100%;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            animation: fadeIn 1s ease-out 0.8s both;
            position: relative;
            z-index: 1;
        }

        .decorative-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .circle {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            animation: float-circles 20s infinite ease-in-out;
        }

        .circle:nth-child(1) {
            width: 100px;
            height: 100px;
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .circle:nth-child(2) {
            width: 60px;
            height: 60px;
            top: 60%;
            left: 80%;
            animation-delay: 5s;
        }

        .circle:nth-child(3) {
            width: 80px;
            height: 80px;
            bottom: 15%;
            left: 20%;
            animation-delay: 10s;
        }

        @keyframes float-circles {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -30px) scale(1.1); }
            66% { transform: translate(-20px, 20px) scale(0.9); }
        }

        @media (max-width: 992px) {
            body {
                padding: 15px;
            }

            .login-container {
                grid-template-columns: 1fr;
                max-width: 500px;
                margin: auto;
            }

            .right-panel {
                display: none;
            }

            .left-panel {
                padding: 40px 30px;
            }

            .school-logo {
                width: 100px;
                height: 100px;
            }

            .school-title {
                font-size: 1.4rem;
            }

            .school-subtitle {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 576px) {
            body {
                padding: 10px;
            }

            .left-panel {
                padding: 30px 20px;
            }

            .school-logo {
                width: 80px;
                height: 80px;
            }

            .school-title {
                font-size: 1.15rem;
            }

            .school-subtitle {
                font-size: 0.95rem;
            }

            .form-input {
                padding: 12px 16px 12px 44px;
                font-size: 0.9rem;
            }

            .btn-login {
                padding: 12px;
                font-size: 0.95rem;
            }

            .alert-danger {
                padding: 10px 12px;
                font-size: 0.85rem;
            }
        }

        @media (min-width: 993px) and (max-width: 1200px) {
            .login-container {
                max-width: 850px;
            }

            .left-panel {
                padding: 30px 25px;
            }

            .right-panel {
                padding: 35px 30px;
            }

            .motto {
                font-size: 1rem;
            }
        }