        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 20px;
            animation: fadeIn 0.3s ease-out;
        }

        .modal-overlay.show {
            display: flex;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .modal-container {
            background-color: #fff;
            border-radius: 28px;
            width: 100%;
            max-width: 350px;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease-out;
            overflow: hidden;
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            padding: 12px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f0f0f0;
        }

        .modal-logo {
            height: 18px;
            width: auto;
            color: #5433eb;
        }

        .modal-close {
            width: 32px;
            height: 32px;
            border: none;
            background-color: #f2f4f5;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 24px;
            transition: all 0.3s ease;
            border-radius: 50%;
        }

        .modal-close:hover {
            background-color: #e0e4e8;
            color: #333;
        }

        .modal-body {
            padding: 16px 24px 24px;
            min-height: auto;
        }

        .loading-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: auto;
            gap: 12px;
            padding: 12px 0;
        }

        .skeleton-loader {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .skeleton-item {
            height: 16px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }

        .skeleton-item.large {
            height: 44px;
        }

        @keyframes shimmer {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        .login-form {
            display: none;
            animation: fadeInContent 0.4s ease-out;
        }

        .login-form.show {
            display: block;
        }

        @keyframes fadeInContent {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-title {
            font-size: 16px;
            font-weight: 600;
            color: #000;
            margin-bottom: 12px;
            line-height: 1.3;
            text-align: center;
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-input {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            font-size: 15px;
            font-family: inherit;
            transition: all 0.3s ease;
            background-color: #fff;
        }

        .form-input:focus {
            outline: none;
            border-color: #5433eb;
            box-shadow: 0 0 0 3px rgba(84, 51, 235, 0.1);
        }

        .form-input::placeholder {
            color: #9ca3af;
        }

        .btn-submit {
            width: 100%;
            padding: 14px 20px;
            background-color: #5433eb;
            color: white;
            border: none;
            border-radius: 16px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-submit:hover:not(:disabled) {
            background-color: #6c4dff;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(84, 51, 235, 0.3);
        }

        .btn-submit:disabled {
            background-color: #c7b9f6;
            cursor: not-allowed;
        }

        #codeSubmitBtn {
            display: none;
        }

        .btn-loader {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .code-loading-state {
            display: none;
            text-align: center;
            padding: 40px 24px;
        }

        .code-loading-state.show {
            display: block;
        }

        .code-skeleton {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 20px;
            animation: fadeIn 0.4s ease-out;
        }

        .code-skeleton-item {
            height: 40px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .form-footer {
            text-align: center;
            padding: 14px 20px;
            margin: 16px -24px -24px;
            font-size: 12px;
            color: #6b7280;
            line-height: 1.5;
            background-color: #f2f4f5;
            border-radius: 0 0 16px 16px;
        }

        .form-footer a {
            color: #5433eb;
            text-decoration: none;
            transition: opacity 0.3s;
        }

        .form-footer a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        .passkey-option {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #e5e7eb;
            color: #000;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .passkey-option:hover {
            color: #5433eb;
        }

        .passkey-icon {
            width: 18px;
            height: 18px;
        }

        .code-form {
            display: none;
            animation: fadeInContent 0.4s ease-out;
        }

        .code-form.show {
            display: block;
        }

        .user-email {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            background-color: transparent;
            border-radius: 6px;
            margin-bottom: 5px;
            font-size: 15px;
            color: #000;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .user-email:hover {
            background-color: transparent;
        }

        .user-email svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            margin-left: 4px;
        }

        .code-inputs {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 10px;
            margin-bottom: 24px;
        }

        .code-input {
            width: 100%;
            aspect-ratio: 1;
            padding: 0;
            border: 2px solid #d1d5db;
            border-radius: 12px;
            font-size: 20px;
            font-weight: 600;
            text-align: center;
            font-family: 'Courier New', monospace;
            transition: all 0.3s ease;
            background-color: #fff;
        }

        .code-input:focus {
            outline: none;
            border-color: #5433eb;
            box-shadow: 0 0 0 3px rgba(84, 51, 235, 0.1);
        }

        .code-instruction {
            font-size: 14px;
            color: #333;
            margin-bottom: 0;
            line-height: 1.5;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .code-instruction strong {
            font-weight: 400;
            color: #000;
        }

        .resend-link {
            display: inline-block;
            text-align: center;
            margin-top: 0;
            font-size: 13px;
            color: #5433eb;
            text-decoration: none;
            transition: opacity 0.3s;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .resend-link:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        .notification {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #fff;
            color: #333;
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            font-size: 14px;
            font-weight: 500;
            z-index: 10000;
            animation: slideDown 0.3s ease-out;
            border-left: 4px solid #5433eb;
            min-width: 300px;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        @keyframes slideUpOut {
            from {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
            to {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
        }

        .notification.hide {
            animation: slideUpOut 0.3s ease-out forwards;
        }

        .notification.success {
            border-left-color: #10b981;
        }

        .notification.error {
            border-left-color: #ef4444;
        }

        @media (max-width: 480px) {
            .modal-container {
                max-width: 100%;
                border-radius: 12px;
            }

            .modal-body {
                padding: 24px 20px;
            }

            .code-inputs {
                gap: 8px;
            }

            .code-input {
                font-size: 18px;
                border-radius: 10px;
            }

            .notification {
                min-width: 280px;
                padding: 14px 20px;
                font-size: 13px;
            }
        }