        :root {
            --primary: #3b7f7a;
            --primary-dark: #2f6763;
            --primary-light: rgba(59, 127, 122, 0.1);
            --secondary: #f0f4ff;
            --text: #1e293b;
            --text-light: #64748b;
            --success: #10b981;
            --error: #ef4444;
            --warning: #f59e0b;
            --light: #ffffff;
            --dark: #0f172a;
            --gray-100: #f8fafc;
            --gray-200: #e2e8f0;
            --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 25px 50px rgba(59, 127, 122, 0.15);
            --border-radius: 20px;
            --transition: all 0.3s ease;
            --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        /* Enhanced Background Shapes */
        .background-shapes {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.7;
            filter: blur(40px);
        }

        .shape-1 {
            width: 400px;
            height: 400px;
            top: -200px;
            right: -200px;
            background: linear-gradient(45deg, var(--primary), rgba(99, 102, 241, 0.3));
            animation: float 20s infinite ease-in-out;
        }

        .shape-2 {
            width: 300px;
            height: 300px;
            bottom: -150px;
            left: -150px;
            background: linear-gradient(45deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.1));
            animation: float 25s infinite ease-in-out reverse;
        }

        .shape-3 {
            width: 200px;
            height: 200px;
            top: 50%;
            left: 10%;
            background: linear-gradient(45deg, rgba(16, 185, 129, 0.2), rgba(99, 102, 241, 0.1));
            animation: float 15s infinite ease-in-out;
        }

        /* Logo Section */
        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 30px;
            text-align: center;
        }

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            gap: 15px;
        }

        .logo-image {
            height: 60px;
            width: auto;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
        }

        .logo-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .logo-main {
            font-size: 42px;
            font-weight: 800;
            color: var(--primary);
            letter-spacing: 1px;
            line-height: 1;
            text-transform: uppercase;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .logo-sub {
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
            letter-spacing: 2px;
        }

        .logo-tagline {
            font-size: 14px;
            color: var(--text-light);
            max-width: 300px;
            margin-top: 10px;
            line-height: 1.5;
            padding: 10px 20px;
            background: var(--light);
            border-radius: 50px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        /* Main Container */
        .container {
            width: 100%;
            max-width: 480px;
            background: var(--light);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 50px 40px;
            position: relative;
            transition: var(--transition);
            z-index: 1;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .container:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-5px);
        }

        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient);
        }

        /* Form Header */
        .form-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .form-header h2 {
            color: var(--text);
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 8px;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .form-header p {
            color: var(--text-light);
            font-size: 15px;
        }

        /* Form Container */
        .form-container {
            position: relative;
            overflow: hidden;
        }

        .form {
            transition: transform 0.5s ease;
            animation: slideIn 0.5s ease;
        }

        .form.hidden {
            display: none;
        }

        /* Input Groups */
        .input-group {
            margin-bottom: 20px;
            position: relative;
        }

        .input-group i {
            position: absolute;
            top: 50%;
            left: 18px;
            transform: translateY(-50%);
            color: var(--text-light);
            font-size: 18px;
            transition: var(--transition);
            z-index: 2;
        }

        .input-group input,
        .input-group select {
            width: 100%;
            padding: 16px 16px 16px 50px;
            border-radius: 12px;
            border: 2px solid var(--gray-200);
            outline: none;
            font-size: 16px;
            font-weight: 500;
            color: var(--text);
            background: var(--gray-100);
            transition: var(--transition);
            position: relative;
        }

        .input-group input:focus,
        .input-group select:focus {
            border-color: var(--primary);
            background: var(--light);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .input-group input:focus + i {
            color: var(--primary);
        }

        .password-toggle {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            cursor: pointer;
            font-size: 18px;
            transition: var(--transition);
            z-index: 2;
        }

        .password-toggle:hover {
            color: var(--primary);
        }

        /* Enhanced Role Selection */
        .role-label {
            font-size: 14px;
            color: var(--text);
            margin-bottom: 12px;
            display: block;
            font-weight: 500;
        }

        .role-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 5px;
        }

        .role-option {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            padding: 20px 15px;
            border: 2px solid var(--gray-200);
            border-radius: 12px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: var(--gray-100);
            position: relative;
            min-height: 100px;
        }

        .role-option:hover {
            border-color: var(--primary);
            background: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(59, 127, 122, 0.1);
        }

        .role-option.selected {
            border-color: var(--primary);
            background: var(--primary-light);
            color: var(--primary);
            font-weight: 600;
            box-shadow: 0 8px 16px rgba(59, 127, 122, 0.15);
        }

        .role-option i {
            font-size: 24px;
            margin-bottom: 10px;
            display: block;
            color: inherit;
            position: static;
            transform: none;
        }

        .role-option .role-text {
            font-size: 14px;
            font-weight: 600;
            margin-top: 5px;
        }

        .role-option input[type="radio"] {
            display: none;
        }

        /* Enhanced Button */
        .btn {
            width: 100%;
            padding: 18px;
            border: none;
            border-radius: 12px;
            background: var(--gradient);
            color: var(--light);
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 20px;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(59, 127, 122, 0.3);
            position: relative;
            overflow: hidden;
            letter-spacing: 0.5px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(59, 127, 122, 0.4);
        }

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

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

        .btn:hover::after {
            left: 100%;
        }

        /* Form Toggle */
        .toggle {
            margin-top: 25px;
            text-align: center;
            font-size: 15px;
            color: var(--text-light);
        }

        .toggle span {
            color: var(--primary);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            padding: 5px 10px;
            border-radius: 8px;
            margin-left: 5px;
        }

        .toggle span:hover {
            background: var(--primary-light);
        }

        /* Enhanced Messages */
        .message {
            padding: 18px;
            border-radius: 12px;
            margin-bottom: 25px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            text-align: left;
            animation: fadeIn 0.5s ease;
            backdrop-filter: blur(10px);
        }

        .error {
            background: rgba(239, 68, 68, 0.1);
            color: var(--error);
            border-left: 4px solid var(--error);
        }

        .success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border-left: 4px solid var(--success);
        }

        .warning {
            background: rgba(245, 158, 11, 0.1);
            color: var(--warning);
            border-left: 4px solid var(--warning);
        }

        .message i {
            margin-right: 15px;
            font-size: 20px;
            flex-shrink: 0;
        }

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

        @keyframes slideIn {
            from { transform: translateX(20px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

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

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

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 40px 30px;
            }
            
            .logo-main {
                font-size: 36px;
            }
            
            .logo-sub {
                font-size: 16px;
            }
            
            .form-header h2 {
                font-size: 28px;
            }
            
            .role-options {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 15px;
            }
            
            .container {
                padding: 30px 25px;
            }
            
            .logo {
                flex-direction: column;
                text-align: center;
            }
            
            .logo-text {
                align-items: center;
            }
            
            .logo-main {
                font-size: 32px;
            }
            
            .logo-sub {
                font-size: 14px;
            }
            
            .form-header h2 {
                font-size: 24px;
            }
            
            .input-group input,
            .input-group select {
                padding: 14px 14px 14px 50px;
            }
            
            .role-options {
                grid-template-columns: 1fr;
            }
            
            .role-option {
                flex-direction: row;
                justify-content: flex-start;
                padding: 15px 20px;
                text-align: left;
                min-height: auto;
            }
            
            .role-option i {
                margin-bottom: 0;
                margin-right: 15px;
                font-size: 20px;
            }
            
            .btn {
                padding: 16px;
            }
        }

        /* Loading State */
        .btn.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .btn.loading::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            z-index: 1;
        }

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

        /* Extra Details */
        .extra-links {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            font-size: 14px;
        }

        .extra-links a {
            color: var(--text-light);
            text-decoration: none;
            transition: var(--transition);
        }

        .extra-links a:hover {
            color: var(--primary);
        }

        .remember-me {
            display: flex;
            align-items: center;
            font-size: 14px;
            color: var(--text-light);
            margin-top: 10px;
        }

        .remember-me input {
            margin-right: 8px;
        }