
img.logo {
    height: 60px;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #a0c6ffff;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow-x: hidden;
            padding: 10px;
        }

        /* Animated background elements */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
        }

        .bg-animation::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: float 20s infinite linear;
        }

        @keyframes float {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .floating-shapes {
            position: fixed;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .shape {
            position: absolute;
            opacity: 0.1;
            animation: floatShapes 15s infinite ease-in-out;
        }

        .shape:nth-child(1) {
            top: 20%;
            left: 10%;
            width: 80px;
            height: 80px;
            background: linear-gradient(45deg, #ff6b6b, #feca57);
            border-radius: 50%;
            animation-delay: 0s;
        }

        .shape:nth-child(2) {
            top: 60%;
            right: 10%;
            width: 120px;
            height: 120px;
            background: linear-gradient(45deg, #48dbfb, #0abde3);
            clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
            animation-delay: 5s;
        }

        .shape:nth-child(3) {
            bottom: 20%;
            left: 20%;
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #ff9ff3, #f368e0);
            border-radius: 20px;
            animation-delay: 10s;
        }

        @keyframes floatShapes {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        .main-container {
            display: flex;
            width: 100%;
            max-width: 1400px;
            min-height: 700px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            position: relative;
            z-index: 1;
        }

        .left-panel {
            flex: 1;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            min-height: 600px;
        }

        .left-panel::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="25" cy="75" r="0.8" fill="rgba(255,255,255,0.06)"/><circle cx="75" cy="75" r="1.2" fill="rgba(255,255,255,0.09)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            animation: grain 8s infinite linear;
        }

        @keyframes grain {
            0% { transform: translate(0, 0); }
            100% { transform: translate(-100px, -100px); }
        }

        .logo-container {
            margin-bottom: 40px;
            position: relative;
            z-index: 2;
        }

        .logo {
            height: 60px;
            max-width: 100%;
            animation: pulse 2s infinite ease-in-out;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .welcome-text {
            color: white;
            position: relative;
            z-index: 2;
            max-width: 400px;
        }

        .welcome-text h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #fff, #f1f2f6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }

        .welcome-text p {
            font-size: 1.1rem;
            line-height: 1.6;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .features {
            display: flex;
            justify-content: space-around;
            width: 100%;
            max-width: 300px;
            margin-top: 40px;
            gap: 20px;
        }

        .feature-item {
            text-align: center;
            color: white;
            flex: 1;
        }

        .feature-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-size: 20px;
        }

        .feature-item div:last-child {
            font-size: 0.9rem;
            font-weight: 500;
        }

        .right-panel {
            flex: 1.5;
            padding: 60px 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: white;
            min-height: 600px;
        }

        .login-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .login-header h1 {
            font-size: 2rem;
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .login-header p {
            color: #7f8c8d;
            font-size: 1rem;
        }

        .error-message {
            color: #e74c3c;
            font-weight: bold;
            text-align: center;
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(231, 76, 60, 0.1);
            border-radius: 8px;
            border-left: 4px solid #e74c3c;
            font-size: 0.9rem;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 25px;
        }

        .form-group-full {
            grid-column: 1 / -1;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.95rem;
        }

        .form-control, select {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e1e8ed;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .form-control:focus, select:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }

        .password-container {
            position: relative;
        }

        .btn-sm {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #7f8c8d;
            font-size: 1.1rem;
            padding: 8px;
            border-radius: 4px;
            transition: color 0.3s ease;
            min-width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-sm:hover {
            color: #667eea;
        }

        .btn-primary {
            min-width: 140px;
            padding: 16px 32px;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-success {
            min-width: 140px;
            padding: 16px 32px;
            background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-primary::before,
        .btn-success::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .btn-primary:hover::before,
        .btn-success:hover::before {
            left: 100%;
        }

        .btn-primary:hover,
        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        }

        .btn-success:hover {
            box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
        }

        .btn-primary:active,
        .btn-success:active {
            transform: translateY(0);
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 30px 0 20px;
        }

        .border-bottom {
            flex: 1;
            height: 1px;
            background: #e1e8ed;
        }

        .divider span {
            margin: 0 15px;
            color: #7f8c8d;
            font-size: 0.9rem;
        }

        .button-group {
            display: flex;
            gap: 15px;
            justify-content: flex-start;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .text-center {
            text-align: center;
        }

        .loading {
            display: none;
        }

        .btn-primary.loading,
        .btn-success.loading {
            pointer-events: none;
        }

        .btn-primary.loading::after,
        .btn-success.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* Enhanced Responsive Design */

        /* Large tablets and small desktops */
        @media (max-width: 1200px) {
            .main-container {
                max-width: 1100px;
            }
            
            .left-panel, .right-panel {
                padding: 50px 30px;
            }
        }

        /* Tablets */
        @media (max-width: 992px) {
            body {
                padding: 5px;
            }
            
            .main-container {
                flex-direction: column;
                width: 100%;
                max-width: 700px;
                margin: 10px;
                border-radius: 20px;
            }

            .left-panel {
                padding: 40px 30px;
                min-height: 350px;
                order: 1;
            }

            .right-panel {
                padding: 40px 30px;
                order: 2;
                min-height: auto;
            }

            .welcome-text h1 {
                font-size: 2.2rem;
            }

            .welcome-text p {
                font-size: 1rem;
            }

            .features {
                justify-content: space-evenly;
                margin-top: 30px;
                max-width: 100%;
            }

            .feature-item {
                margin-bottom: 0;
            }

            .feature-icon {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }

            .login-header h1 {
                font-size: 1.8rem;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }
        }

        /* Small tablets and large phones */
        @media (max-width: 768px) {
            .main-container {
                margin: 5px;
                border-radius: 16px;
                max-width: 100%;
            }

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

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

            .welcome-text h1 {
                font-size: 2rem;
            }

            .welcome-text p {
                font-size: 0.95rem;
                margin-bottom: 20px;
            }

            .features {
                margin-top: 20px;
                gap: 15px;
            }

            .feature-icon {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .feature-item div:last-child {
                font-size: 0.85rem;
            }

            .login-header {
                margin-bottom: 30px;
            }

            .login-header h1 {
                font-size: 1.6rem;
            }

            .login-header p {
                font-size: 0.9rem;
            }

            .form-control, select {
                padding: 14px 18px;
                font-size: 0.95rem;
            }

            .btn-primary, .btn-success {
                padding: 14px 28px;
                font-size: 1rem;
                min-width: 120px;
            }

            .error-message {
                padding: 12px;
                font-size: 0.85rem;
            }

            .button-group {
                gap: 10px;
            }
        }

        /* Small phones */
        @media (max-width: 576px) {
            body {
                padding: 0;
            }

            .main-container {
                margin: 0;
                border-radius: 12px;
                min-height: 100vh;
                max-height: none;
                overflow-y: auto;
            }

            .left-panel {
                padding: 25px 15px;
                min-height: 250px;
            }

            .right-panel {
                padding: 25px 15px;
                flex: 1;
            }

            .logo {
                height: 45px;
            }

            .welcome-text h1 {
                font-size: 1.7rem;
                margin-bottom: 15px;
            }

            .welcome-text p {
                font-size: 0.9rem;
                margin-bottom: 15px;
            }

            .features {
                margin-top: 15px;
                gap: 10px;
            }

            .feature-icon {
                width: 35px;
                height: 35px;
                font-size: 14px;
                margin-bottom: 8px;
            }

            .feature-item div:last-child {
                font-size: 0.8rem;
            }

            .login-header h1 {
                font-size: 1.4rem;
            }

            .login-header p {
                font-size: 0.85rem;
            }

            .form-control, select {
                padding: 12px 15px;
                font-size: 0.9rem;
            }

            .btn-primary, .btn-success {
                padding: 12px 24px;
                font-size: 0.95rem;
                min-width: 100px;
                flex: 1;
            }

            .btn-sm {
                padding: 6px;
                min-width: 35px;
                height: 35px;
                font-size: 1rem;
            }

            .form-group {
                margin-bottom: 20px;
            }

            .form-row {
                margin-bottom: 20px;
                gap: 15px;
            }

            .divider {
                margin: 25px 0 15px;
            }

            .button-group {
                justify-content: stretch;
                gap: 10px;
            }
        }

        /* Extra small phones */
        @media (max-width: 400px) {
            .welcome-text h1 {
                font-size: 1.5rem;
            }

            .login-header h1 {
                font-size: 1.3rem;
            }

            .form-control, select {
                padding: 10px 12px;
                font-size: 0.85rem;
            }

            .btn-primary, .btn-success {
                padding: 10px 20px;
                font-size: 0.9rem;
                min-width: auto;
            }

            .features {
                flex-direction: row;
                justify-content: space-around;
            }
        }

        /* Landscape orientation for mobile devices */
        @media (max-height: 600px) and (orientation: landscape) {
            .main-container {
                flex-direction: row;
                max-height: 100vh;
            }

            .left-panel {
                min-height: auto;
                padding: 20px 15px;
            }

            .right-panel {
                padding: 20px 15px;
                min-height: auto;
                overflow-y: auto;
            }

            .welcome-text h1 {
                font-size: 1.5rem;
                margin-bottom: 10px;
            }

            .welcome-text p {
                font-size: 0.85rem;
                margin-bottom: 15px;
            }

            .features {
                margin-top: 10px;
            }

            .feature-icon {
                width: 30px;
                height: 30px;
                font-size: 12px;
                margin-bottom: 5px;
            }

            .feature-item div:last-child {
                font-size: 0.7rem;
            }

            .login-header {
                margin-bottom: 20px;
            }

            .form-group, .form-row {
                margin-bottom: 15px;
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .form-control, select {
                border-width: 1px;
            }
            
            .btn-primary, .btn-success {
                border-width: 1px;
            }
        }

        /* Print styles */
        @media print {
            .bg-animation,
            .floating-shapes {
                display: none;
            }
            
            .main-container {
                box-shadow: none;
                border: 1px solid #ccc;
            }
        }

        /* Accessibility improvements */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* Focus styles for better accessibility */
        .form-control:focus,
        .btn-primary:focus,
        .btn-success:focus,
        select:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        /* Loading state improvements */
        @media (max-width: 576px) {
            .btn-primary.loading::after,
            .btn-success.loading::after {
                width: 16px;
                height: 16px;
            }
        }
    </style>
