        :root {
            --primary-color: #5261ff;
            --secondary-color: #8bceff;
            --form-bg: #ffffff;
            --text-color: #333;
            --muted-text: #6b7280;
            --light-gray: #f0f0f0;
            --white: #fff;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            --border-radius-main: 16px;
            --border-radius-input: 8px;
            --border-radius-btn: 8px;
        }

        [data-theme="dark"] {
            --form-bg: #1f2937;
            --text-color: #e2e8f0;
            --muted-text: #94a3b8;
            --light-gray: #334155;
        }

        .btn-gradient {
            background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            background-size: 200%;
            transition: all 0.4s ease;
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: var(--border-radius-main);
            font-weight: 600;
        }

        .btn-gradient:hover {
            background-position: right;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(82, 97, 255, 0.3);
        }

        body {
            font-family: 'Poppins', sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            overflow: hidden;
        }

        .container {
            width: 100%;
            max-width: 360px;
            margin: auto;
            display: flex;
            flex-direction: column;
        }

        .form-container {
            background-color: var(--form-bg);
            padding: 40px;
            border-radius: 16px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: all 0.3s ease;
            margin: 0 auto;
            width: 50%;
        }

        h2 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--text-color);
        }

        p {
            font-size: 14px;
            color: var(--muted-text);
            margin-bottom: 20px;
        }

        .input-group {
            position: relative;
            margin-bottom: 20px;
            text-align: left;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-color);
        }

        .input-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            font-size: 16px;
            background-color: #f9f9f9;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .input-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(82, 97, 255, 0.2);
        }

        .btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 8px;
            background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            background-size: 200%;
            color: var(--white);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s ease;
        }

        .btn:hover {
            background-position: right;
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(82, 97, 255, 0.3);
        }

        .form-switch-text {
            margin-top: 20px;
            font-size: 14px;
            color: var(--text-color);
        }

        .form-switch-text a {
            color: var(--primary-color);
            font-weight: 600;
            text-decoration: none;
        }

        .auth-forms-container {
            position: relative;
            width: 100%;
            height: 520px;
            transition: all 0.3s ease;
        }

        .auth-form {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
            transform: translateY(20px);
        }

        .auth-form.active {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
            transform: translateY(0);
        }

        .discord-icon {
            height: 20px;
            width: auto;
        }

        .btn-discord {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            background-color: #5865F2;
            color: white;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-discord:hover {
            background-color: #4752c4;
        }

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background-color: var(--form-bg);
            padding: 30px;
            border-radius: 16px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            box-shadow: var(--shadow);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .modal.active .modal-content {
            transform: scale(1);
        }

        .modal-content h3 {
            margin-bottom: 10px;
            color: var(--text-color);
        }

        .modal-content p {
            margin-bottom: 20px;
            color: var(--muted-text);
        }

        .modal-content button {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            background-color: var(--primary-color);
            color: var(--white);
        }

        .modal-content button:hover {
            opacity: 0.9;
        }

        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(5px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        #loading-screen.active {
            opacity: 1;
            visibility: visible;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid var(--primary-color);
            border-bottom-color: transparent;
            border-radius: 50%;
            display: inline-block;
            animation: rotation 1s linear infinite;
        }

        .loading-text {
            margin-top: 20px;
            font-size: 1.2rem;
            color: var(--primary-color);
            font-weight: 500;
        }

        @keyframes rotation {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }