        body {
            font-family: Arial;
            background: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 15px;
            box-sizing: border-box;
        }

        .login-box {
            background: white;
            padding: 25px;
            width: 100%;
            max-width: 360px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            border-radius: 10px;
        }

        h2 {
            text-align: center;
            margin-bottom: 15px;
        }

        input {
            width: 100%;
            padding: 12px;
            margin: 8px 0;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        button {
            width: 100%;
            padding: 12px;
            background: #333;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 5px;
            font-size: 16px;
        }

        button:hover {
            background: #555;
        }

        .msg {
            color: red;
            font-size: 13px;
            margin-bottom: 10px;
            text-align: center;
        }

        /* ── Mobile & Tablet: slide-up sheet ── */
        @media (max-width: 768px) {
            body {
                align-items: flex-end;
                padding: 0;
                background: rgba(0, 0, 0, 0.35);
            }

            .login-box {
                max-width: 100%;
                border-radius: 20px 20px 0 0;
                padding: 32px 24px 40px;
                box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);

                /* Slide-up animation */
                animation: slideUp 0.45s cubic-bezier(0.32, 0.72, 0, 1) both;
            }

            /* Drag handle pill */
            .login-box::before {
                content: '';
                display: block;
                width: 40px;
                height: 4px;
                background: #ddd;
                border-radius: 2px;
                margin: 0 auto 20px;
            }

            input, button {
                font-size: 14px;
            }
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }