 /* Reset & Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
        }

        :root {
            --primary: #4361ee;
            --primary-light: #4895ef;
            --primary-dark: #3a0ca3;
            --secondary: #7209b7;
            --accent: #f72585;
            --success: #4cc9f0;
            --warning: #f8961e;
            --danger: #ef233c;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --gray-light: #e9ecef;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --radius: 16px;
            --radius-sm: 8px;
        }

        body {
            background: linear-gradient(135deg, #2A7B9B 0%, #57C785 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        /* Background Animation */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.3;
        }

        .circle {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 20s infinite linear;
        }

        .circle:nth-child(1) {
            width: 80px;
            height: 80px;
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .circle:nth-child(2) {
            width: 120px;
            height: 120px;
            top: 60%;
            right: 10%;
            animation-delay: 5s;
        }

        .circle:nth-child(3) {
            width: 60px;
            height: 60px;
            bottom: 20%;
            left: 20%;
            animation-delay: 10s;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            33% {
                transform: translateY(-30px) rotate(120deg);
            }
            66% {
                transform: translateY(30px) rotate(240deg);
            }
        }

        /* Login Container */
        .login-container {
            width: 100%;
            max-width: 420px;
            animation: slideUp 0.8s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Login Card */
        .login-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: var(--radius);
            padding: 2rem;
            box-shadow: var(--shadow-lg);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, #57C785);
        }

        /* Header */
        .login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .logo-container {
            display: flex;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .logo {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        .app-name {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.5rem;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .app-description {
            color: var(--gray);
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* Form */
        .login-form {
            margin-bottom: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            font-size: 1.2rem;
            z-index: 2;
            transition: var(--transition);
        }

        .form-input {
            width: 100%;
            padding: 16px 16px 16px 48px;
            border: 2px solid var(--gray-light);
            border-radius: 12px;
            font-size: 1rem;
            transition: var(--transition);
            background: white;
            color: var(--dark);
            font-weight: 500;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
            transform: translateY(-1px);
        }

        .form-input:focus + .input-icon {
            color: var(--secondary);
            transform: translateY(-50%) scale(1.1);
        }

        .password-toggle {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            font-size: 1.2rem;
            z-index: 2;
            transition: var(--transition);
        }

        .password-toggle:hover {
            color: var(--primary);
        }

        /* Remember & Forgot */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 10px;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
        }

        .checkbox {
            width: 18px;
            height: 18px;
            border: 2px solid var(--gray-light);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .checkbox.checked {
            background: var(--primary);
            border-color: var(--primary);
        }

        .checkbox.checked::after {
            content: '✓';
            color: white;
            font-size: 12px;
        }

        .remember-text {
            color: var(--dark);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .forgot-link {
            color: var(--primary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: var(--transition);
        }

        .forgot-link:hover {
            color: var(--secondary);
            text-decoration: underline;
        }

        /* Submit Button */
        .submit-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #2A7B9B, #57C785);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .submit-btn.loading {
            opacity: 0.8;
            cursor: not-allowed;
        }

        .submit-btn::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                to right,
                transparent 20%,
                rgba(255, 255, 255, 0.2) 50%,
                transparent 80%
            );
            transform: rotate(30deg);
            transition: var(--transition);
            opacity: 0;
        }

        .submit-btn:hover::after {
            opacity: 1;
            animation: shine 1.5s infinite;
        }

        @keyframes shine {
            0% {
                transform: translateX(-100%) rotate(30deg);
            }
            100% {
                transform: translateX(100%) rotate(30deg);
            }
        }

        /* Social Login */
        .social-login {
            margin: 2rem 0;
            position: relative;
            text-align: center;
        }

        .social-divider {
            display: flex;
            align-items: center;
            gap: 15px;
            color: var(--gray);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .social-divider::before,
        .social-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--gray-light);
        }

        .social-buttons {
            display: flex;
            gap: 12px;
            margin-top: 1rem;
            justify-content: center;
        }

        .social-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid var(--gray-light);
            border-radius: 10px;
            background: white;
            color: var(--dark);
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .social-btn:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .social-btn.google:hover {
            border-color: #DB4437;
            color: #DB4437;
        }

        .social-btn.microsoft:hover {
            border-color: #00A4EF;
            color: #00A4EF;
        }

        /* Demo Accounts */
        .demo-accounts {
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
            border-radius: 12px;
            padding: 1.2rem;
            margin-top: 1.5rem;
            border-left: 4px solid var(--primary);
        }

        .demo-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .demo-title i {
            color: var(--primary);
        }

        .demo-accounts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
        }

        .demo-account {
            background: white;
            border-radius: 8px;
            padding: 10px;
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .demo-account:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .demo-account.active {
            border-color: var(--primary);
            background: rgba(67, 97, 238, 0.05);
        }

        .demo-role {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .demo-role.admin i { color: #4361ee; }
        .demo-role.guru i { color: #4cc9f0; }
        .demo-role.operator i { color: #f72585; }

        .demo-credentials {
            font-size: 0.75rem;
            color: var(--gray);
        }

        .demo-username {
            font-weight: 500;
            color: var(--dark);
        }

        /* Footer */
        .login-footer {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .footer-text {
            color: var(--gray);
            font-size: 0.85rem;
            line-height: 1.5;
        }

        .footer-text a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .footer-text a:hover {
            color: var(--secondary);
            text-decoration: underline;
        }

        /* Error Message */
        .error-message {
            background: linear-gradient(135deg, rgba(239, 35, 60, 0.1), rgba(239, 35, 60, 0.05));
            border: 2px solid rgba(239, 35, 60, 0.2);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            display: none;
            animation: slideIn 0.3s ease;
        }

        .error-message.show {
            display: block;
        }

        .error-content {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--danger);
        }

        .error-icon {
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .error-text {
            font-size: 0.9rem;
            font-weight: 500;
            line-height: 1.4;
        }

        /* Success Message */
        .success-message {
            background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(76, 201, 240, 0.05));
            border: 2px solid rgba(76, 201, 240, 0.2);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            display: none;
            animation: slideIn 0.3s ease;
        }

        .success-message.show {
            display: block;
        }

        .success-content {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--success);
        }

        /* Loading Animation */
        .spinner {
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s linear infinite;
            display: none;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            body {
                padding: 15px;
                align-items: flex-start;
                padding-top: 30px;
            }

            .login-container {
                max-width: 100%;
                margin-top: 20px;
            }

            .login-card {
                padding: 1.8rem;
                margin: 0 10px;
            }

            .logo {
                width: 60px;
                height: 60px;
                font-size: 1.8rem;
            }

            .app-name {
                font-size: 1.5rem;
            }

            .app-description {
                font-size: 0.9rem;
            }

            .form-input {
                padding: 14px 14px 14px 44px;
                font-size: 0.95rem;
            }

            .input-icon {
                left: 14px;
                font-size: 1.1rem;
            }

            .password-toggle {
                right: 14px;
            }

            .form-options {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .social-buttons {
                flex-direction: column;
            }

            .demo-accounts-grid {
                grid-template-columns: 1fr;
            }

            .submit-btn {
                padding: 14px;
                font-size: 0.95rem;
            }
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 1.5rem;
                border-radius: 12px;
            }

            .logo {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
                border-radius: 15px;
            }

            .app-name {
                font-size: 1.3rem;
            }

            .app-description {
                font-size: 0.85rem;
            }

            .form-input {
                padding: 12px 12px 12px 40px;
                font-size: 0.9rem;
            }

            .input-icon {
                left: 12px;
                font-size: 1rem;
            }

            .submit-btn {
                padding: 12px;
                font-size: 0.9rem;
            }

            .social-btn {
                padding: 10px;
                font-size: 0.9rem;
            }

            .demo-account {
                padding: 8px;
            }
        }

        /* Dark Mode Support */
        @media (prefers-color-scheme: dark) {
            .login-card {
                background: rgba(30, 30, 40, 0.95);
                border-color: rgba(255, 255, 255, 0.1);
            }

            .app-name {
                color: white;
            }

            .app-description {
                color: rgba(255, 255, 255, 0.7);
            }

            .form-input {
                background: rgba(255, 255, 255, 0.05);
                border-color: rgba(255, 255, 255, 0.1);
                color: white;
            }

            .form-input:focus {
                background: rgba(255, 255, 255, 0.1);
            }

            .form-input::placeholder {
                color: rgba(255, 255, 255, 0.5);
            }

            .remember-text {
                color: rgba(255, 255, 255, 0.9);
            }

            .forgot-link {
                color: var(--primary-light);
            }

            .social-btn {
                background: rgba(255, 255, 255, 0.05);
                border-color: rgba(255, 255, 255, 0.1);
                color: rgba(255, 255, 255, 0.9);
            }

            .demo-account {
                background: rgba(255, 255, 255, 0.05);
            }

            .demo-account.active {
                background: rgba(67, 97, 238, 0.2);
            }

            .demo-username {
                color: white;
            }

            .demo-credentials {
                color: rgba(255, 255, 255, 0.6);
            }

            .footer-text {
                color: rgba(255, 255, 255, 0.7);
            }

            .footer-text a {
                color: var(--primary-light);
            }
        }

        /* Landscape Mode */
        @media (max-height: 600px) and (orientation: landscape) {
            body {
                align-items: flex-start;
                padding-top: 10px;
            }

            .login-container {
                max-width: 90%;
                margin-top: 10px;
            }

            .login-card {
                padding: 1.2rem;
            }

            .login-header {
                margin-bottom: 1rem;
            }

            .logo-container {
                margin-bottom: 0.8rem;
            }

            .form-group {
                margin-bottom: 1rem;
            }

            .form-options {
                margin-bottom: 1rem;
            }

            .demo-accounts {
                display: none;
            }
        }

        /* Print Styles */
        @media print {
            .login-container {
                max-width: 100%;
                box-shadow: none;
            }

            .submit-btn,
            .social-buttons,
            .demo-accounts {
                display: none;
            }
        }