    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body.login-body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d1b2e 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 40px 20px 0;
            color: #fff;
        }

        .login-page {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        .login-container {
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 40px 40px 12px; /* further reduced bottom padding */
            width: 100%;
            max-width: 420px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            margin: 0 auto;
        }

    /* .auth-shell removed (wrapper no longer used) */


        .logo-section {
            text-align: center;
            margin-bottom: 40px;
        }

        .logo {
            width: 60px;
            height: 60px;
            background: #fff;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
        }

        .logo img {
            width: 32px;
            height: 32px;
        }

        .welcome-text h1 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #fff 0%, #ccc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .welcome-text p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 15px;
            line-height: 1.4;
        }

        .auth-form {
            margin-bottom: 30px;
        }

        .form-step {
            display: none;
            animation: fadeInUp 0.5s ease-out;
        }

        .form-step.active {
            display: block;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
        }

        .form-input {
            width: 100%;
            padding: 16px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            font-size: 16px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .form-input:focus {
            outline: none;
            border-color: #3498DB;
            background: rgba(52, 152, 219, 0.1);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        .form-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .otp-inputs {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin-bottom: 20px;
        }

        .otp-input {
            width: 50px;
            height: 50px;
            text-align: center;
            font-size: 20px;
            font-weight: 700;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            transition: all 0.3s ease;
        }

        .otp-input:focus {
            outline: none;
            border-color: #27AE60;
            background: rgba(39, 174, 96, 0.1);
            box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
        }

        .auth-button {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .auth-button.primary {
            background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
            color: #fff;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        }

        .auth-button.primary:hover {
            background: linear-gradient(135deg, #2980B9 0%, #21618C 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
        }

        .auth-button.secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .auth-button.secondary:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .auth-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

            100% {
                transform: rotate(360deg);
            }
        }

        .divider {
            position: relative;
            text-align: center;
            margin: 30px 0;
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        .divider span {
            background: rgba(0, 0, 0, 0.85);
            padding: 0 20px;
            position: relative;
        }

        .oauth-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .oauth-btn {
            padding: 14px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-size: 15px;
            font-weight: 500;
        }

        .oauth-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        .oauth-btn.google {
            background: rgba(238, 197, 193, 0.1);
            border-color: rgba(234, 67, 53, 0.3);
        }


        .oauth-btn.apple {
            background: rgba(0, 0, 0, 0.8);
            border-color: rgba(255, 255, 255, 0.3);
            color: #fff;
        }

        .oauth-btn.apple:hover {
            background: rgba(0, 0, 0, 0.9);
        }

        .back-button {
            color: #3498DB;
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.3s ease;
            margin-bottom: 20px;
        }

        .back-button:hover {
            color: #2980B9;
        }

        .resend-timer {
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
        }

        .resend-link {
            color: #3498DB;
            cursor: pointer;
            text-decoration: none;
            font-weight: 500;
        }

        .resend-link:hover {
            text-decoration: underline;
        }

        .footer-links {
            text-align: center;
            font-size: 13px;
            display: flex;
            gap: 32px;
            justify-content: center;
            margin-top: 48px;
            margin-bottom: 0;
            padding-bottom: 0;
            opacity: .85;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            margin: 0 10px;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #fff;
        }

        /* Tablet adjustments */
        @media (max-width: 768px) {
            body {
                padding: clamp(24px, 6vw, 40px);
            }

            .login-container {
                max-width: 480px;
                padding: clamp(32px, 6vw, 40px);
                margin: 0 auto;
            }

            .oauth-buttons {
                flex-direction: row;
                flex-wrap: wrap;
            }

            .oauth-btn {
                flex: 1 1 48%;
                min-width: 200px;
            }

            .form-input,
            .auth-button {
                padding: clamp(14px, 4vw, 18px);
            }
        }

        /* Mobile Responsiveness */
    @media (max-width: 480px) {

            .login-container {
                padding: 30px 25px 12px; /* match further reduced bottom padding */
                margin: 10px;
            }

            .welcome-text h1 {
                font-size: 24px;
            }

            .otp-input {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }

            .otp-inputs {
                gap: 8px;
            }

            .oauth-buttons {
                flex-direction: column;
            }

            .oauth-btn {
                width: 100%;
            }
        }

        .success-message {
            background: rgba(39, 174, 96, 0.1);
            border: 1px solid rgba(39, 174, 96, 0.3);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 20px;
            text-align: center;
            color: #27AE60;
            font-size: 14px;
            display: none;
        }

        .error-message {
            background: rgba(231, 76, 60, 0.1);
            border: 1px solid rgba(231, 76, 60, 0.3);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 20px;
            text-align: center;
            color: #E74C3C;
            font-size: 14px;
            display: none;
        }

        /* Back arrow button (top-left inside card) */
        .back-arrow {
            position: absolute;
            top: 20px;
            left: 20px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            z-index: 10;
        }

        .back-arrow:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateX(-2px);
        }

        .back-arrow svg { color: rgba(255,255,255,0.7); transition: color .3s ease; }
        .back-arrow:hover svg { color: rgba(255,255,255,0.9); }

        @media (max-width: 480px) {
            .back-arrow { top: 15px; left: 15px; width: 36px; height: 36px; }
            .back-arrow svg { width: 18px; height: 18px; }
        }

