        /* Custom select styles */
        .custom-select-wrapper {
            position: relative;
            width: 100%;
        }
        .custom-select {
            width: 100%;
            padding: 0.9rem 3rem 0.9rem 1rem;
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            font-size: 1rem;
            background: var(--background-light);
            color: var(--text-color);
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            outline: none;
            transition: border 0.3s, background 0.3s;
        }
        .custom-select:focus {
            border-color: var(--primary-color);
            background: var(--white);
            box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
        }
        .custom-select-wrapper .input-icon {
            pointer-events: none;
            right: 1rem;
            color: var(--secondary-color);
        }
        /* Drag and drop file upload styles */
        .drag-upload {
            width: 100%;
            background: var(--background-light);
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            padding: 1.2rem 1rem;
            text-align: center;
            cursor: pointer;
            margin-bottom: 0.5rem;
            transition: border-color 0.3s, background 0.3s;
            position: relative;
        }
        .drag-upload-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: var(--secondary-color);
            font-size: 1rem;
            font-weight: 500;
            transition: color 0.3s;
        }
        .drag-upload-icon {
            font-size: 2.2rem;
            color: var(--primary-color);
            margin-bottom: 0.2rem;
        }
        .drag-upload-text {
            color: var(--text-color);
            font-size: 1rem;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }
        .drag-upload.drag-active, .drag-upload-content.drag-active {
            border-color: var(--primary-color);
            background: var(--white);
            color: var(--primary-color);
        }
        .drag-upload-preview {
            margin-top: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .drag-upload-preview img {
            max-width: 100px;
            max-height: 100px;
            border-radius: 10px;
            box-shadow: 0 2px 8px #ccc;
        }
        @media (max-width: 600px) {
            .custom-select {
                font-size: 0.95rem;
                padding: 0.8rem 2.8rem 0.8rem 1rem;
            }
            .drag-upload {
                padding: 1rem 0.5rem;
            }
            .drag-upload-icon {
                font-size: 1.5rem;
            }
            .drag-upload-text {
                font-size: 0.95rem;
                max-width: 110px;
            }
        }
        /* Custom file upload styles */
        .file-upload-wrapper {
            position: relative;
            width: 100%;
        }
        .file-upload-label {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.7rem;
            width: 100%;
            padding: 0.9rem 1rem;
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            background: var(--background-light);
            color: var(--secondary-color);
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: border 0.3s, background 0.3s;
        }
        .file-upload-label:hover, .file-upload-label:focus {
            border-color: var(--primary-color);
            background: var(--white);
            color: var(--primary-color);
        }
        .file-upload-label i {
            font-size: 1.4rem;
            color: inherit;
        }
        .file-upload-text {
            color: var(--text-color);
            font-size: 1rem;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }
        @media (max-width: 600px) {
            .file-upload-label {
                font-size: 0.95rem;
                padding: 0.8rem 0.8rem;
            }
            .file-upload-label i {
                font-size: 1.1rem;
            }
            .file-upload-text {
                font-size: 0.95rem;
                max-width: 110px;
            }
        }
        :root {
            --primary-color: #6c63ff;
            --primary-dark: #5a52d5;
            --secondary-color: #a18cd1;
            --accent-color: #fbc2eb;
            --text-color: #333;
            --light-text: #777;
            --border-color: #e0e0e0;
            --background-light: #f9f9f9;
            --white: #ffffff;
            --error-color: #ff4757;
            --success-color: #2ed573;
            --warning-color: #ffa502;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            background: linear-gradient(135deg, #a18cd1 0%, #6c63ff 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Poppins', Arial, sans-serif;
            padding: 1rem;
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .container {
            position: relative;
            z-index: 2; /* Increased z-index to be above floating shapes */
            width: 100%;
            max-width: 450px;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        @media (max-width: 600px) {
            body {
                padding: 0.5rem;
                min-height: 100vh;
                overflow-y: auto;
            }
            .container {
                min-height: 100vh;
                align-items: flex-start;
                justify-content: flex-start;
                padding-top: 1rem;
                padding-bottom: 1.5rem;
            }
        }

        .login-container {
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            padding: 2.5rem 2rem;
            width: 100%;
            backdrop-filter: blur(10px);
            animation: fadeIn 0.8s ease-out;
            position: relative;
            z-index: 3; /* Ensure login container is above everything */
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-header {
            text-align: center;
            margin-bottom: 1rem;
        }

        .login-header .logo {
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
            border-radius: 50%;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem auto;
            box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
            }
            50% {
                box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
            }
            100% {
                box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
            }
        }

        .login-header .logo i {
            font-size: 2.5rem;
            color: var(--white);
        }

        .login-header h2 {
            margin: 0 0 0.5rem 0;
            font-size: 1.8rem;
            color: var(--text-color);
            font-weight: 700;
        }

        .login-header p {
            color: var(--light-text);
            font-size: 0.95rem;
        }

        .form-group {
            margin-bottom: 0.7rem;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-color);
            font-weight: 600;
            font-size: 0.95rem;
        }

        .input-wrapper {
            position: relative;
            width: 100%;
        }

        .form-group input {
            width: 100%;
            padding: 0.9rem 3rem 0.9rem 1rem;
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            font-size: 1rem;
            background: var(--background-light);
            transition: all 0.3s ease;
            outline: none;
        }

        .form-group input:focus {
            border-color: var(--primary-color);
            background: var(--white);
            box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
        }

        .input-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary-color);
            font-size: 1.1rem;
            transition: color 0.3s ease;
            z-index: 2; /* Ensure icons are clickable */
        }

        .form-group input:focus + .input-icon {
            color: var(--primary-color);
        }

        .toggle-password {
            cursor: pointer;
            pointer-events: auto; /* Ensure password toggle is clickable */
        }

        .validation-message {
            font-size: 0.85rem;
            margin-top: 0.3rem;
            height: 1.2rem;
            transition: all 0.3s ease;
        }

        .validation-message.error {
            color: var(--error-color);
        }

        .validation-message.success {
            color: var(--success-color);
        }

        .password-strength {
            margin-top: 0.5rem;
            display: none;
        }

        .password-strength.visible {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .strength-bar {
            height: 5px;
            background: #e0e0e0;
            border-radius: 5px;
            margin-bottom: 0.3rem;
            overflow: hidden;
        }

        .strength-progress {
            height: 100%;
            width: 0%;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .strength-progress.weak {
            width: 30%;
            background: var(--error-color);
        }

        .strength-progress.medium {
            width: 60%;
            background: var(--warning-color);
        }

        .strength-progress.strong {
            width: 100%;
            background: var(--success-color);
        }

        .strength-text {
            font-size: 0.8rem;
            color: var(--light-text);
        }

        .options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            position: relative;
            padding-left: 30px;
            cursor: pointer;
            font-size: 0.95rem;
            color: var(--light-text);
            user-select: none;
        }

        .checkbox-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .checkmark {
            position: absolute;
            left: 0;
            height: 20px;
            width: 20px;
            background-color: var(--background-light);
            border: 1.5px solid var(--border-color);
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .checkbox-container:hover input ~ .checkmark {
            border-color: var(--secondary-color);
        }

        .checkbox-container input:checked ~ .checkmark {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .checkbox-container input:checked ~ .checkmark:after {
            display: block;
        }

        .forgot-link {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }

        .forgot-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .login-btn {
            width: 100%;
            padding: 0.9rem;
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
            color: var(--white);
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 50px;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
        }

        .login-btn:active {
            transform: translateY(0);
        }

        .btn-loader {
            display: none;
        }

        .loader {
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 3px solid var(--white);
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .login-btn.loading .btn-text {
            opacity: 0;
        }

        .login-btn.loading .btn-loader {
            display: block;
        }

        .signup-link {
            text-align: center;
            margin-top: 0.7rem;
            font-size: 0.95rem;
            color: var(--light-text);
        }

        .signup-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .signup-link a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .floating-shapes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1; /* Lower z-index than login container */
            pointer-events: none; /* This is the key fix - shapes won't block clicks */
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 15s infinite linear;
            pointer-events: none; /* Ensure shapes don't interfere with clicks */
        }

        .shape-1 {
            width: 80px;
            height: 80px;
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 120px;
            height: 120px;
            top: 60%;
            right: 10%;
            animation-delay: -5s;
        }

        .shape-3 {
            width: 60px;
            height: 60px;
            bottom: 20%;
            left: 20%;
            animation-delay: -10s;
        }

        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(-1000px) rotate(720deg);
                opacity: 0;
            }
        }

        @media (max-width: 600px) {
            .login-container {
                padding: 2rem 1.5rem;
                border-radius: 15px;
            }
            
            .login-header .logo {
                width: 70px;
                height: 70px;
            }
            
            .login-header .logo i {
                font-size: 2rem;
            }
            
            .login-header h2 {
                font-size: 1.5rem;
            }
            
            .form-group input {
                padding: 0.8rem 2.8rem 0.8rem 1rem;
                font-size: 0.95rem;
            }
            
            .login-btn {
                padding: 0.8rem;
                font-size: 0.95rem;
            }
            
            .options {
                flex-direction: row;
                align-items: flex-start;
                gap: 0.7rem;
            }
            
            .forgot-link {
                align-self: flex-end;
            }
        }

        @media (max-width: 400px) {
            .login-container {
                padding: 1.5rem 1rem;
            }

            .login-header .logo {
                width: 60px;
                height: 60px;
                margin-bottom: 1rem;
            }

            .login-header h2 {
                font-size: 1.3rem;
            }

            .login-header p {
                font-size: 0.9rem;
            }
        }

        .download-app {
            text-align: center;
            margin-top: 0.8rem;
        }

        .download-btn {
            width: 100%;
            padding: 0.9rem;
            background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
            color: var(--white);
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
            transition: all 0.3s ease;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
        }
