html, body {
            margin: 0;
            padding: 0;
            height: 100%;
            overflow: hidden;
            touch-action: none; /* Mencegah pull-to-refresh dan scroll di mobile */
        }
        body {
            font-family: 'Inter', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            background: url("/images/swimmingonpool.png") no-repeat center center/cover;
            position: relative;
        }

        body::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            top: 0;
            left: 0;
            z-index: 0;
        }

        /* Login Card */
        .login-container {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 440px;
            padding: 20px;
        }
        .login-card {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            padding: 36px 32px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
            color: #f8fafc;
            animation: cardAppear 0.6s ease-out;
        }
        @keyframes cardAppear {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .login-logo {
            text-align: center;
        }
        .login-logo img {
            width: 319px;
            height: 122px;
            object-fit: contain;
            filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.3));
        }
        .login-logo h1 {
            font-size: 1.75rem;
            font-weight: 800;
            color: #f1f5f9;
            margin-top: 12px;
            letter-spacing: -0.5px;
        }
        .login-logo p {
            font-size: 0.9rem;
            color: #f8fafc;
            margin-top: 6px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        }

        /* Swimmer icon decoration */
        .swim-icon-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
        }
        /* Alerts */
        .alert-portal {
            border-radius: 12px;
            padding: 14px 18px;
            font-size: 0.88rem;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 24px;
            border: none;
            animation: alertSlide 0.4s ease-out;
        }
        .alert-portal .material-icons { font-size: 1.2rem; }
        .alert-portal.alert-danger {
            background: rgba(239, 68, 68, 0.12);
            color: #fca5a5;
        }
        .alert-portal.alert-warning {
            background: rgba(245, 158, 11, 0.12);
            color: #fcd34d;
        }
        .alert-portal.alert-success {
            background: rgba(34, 197, 94, 0.12);
            color: #86efac;
        }
        @keyframes alertSlide {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Google Button */
        .google-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: 100%;
            padding: 16px 24px;
            background: #ffffff;
            color: #1e293b;
            border: none;
            border-radius: 14px;
            font-size: 1rem;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        }
        .google-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            background: #f8fafc;
            color: #1e293b;
        }
        .google-btn:active {
            transform: translateY(0);
        }
        .google-btn svg {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
        }

        /* Divider */
        .divider-text {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 28px 0;
            color: #f8fafc;
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        }
        .divider-text::before,
        .divider-text::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.08);
        }

        /* Info section */
        .info-section {
            text-align: center;
        }
        .info-section p {
            font-size: 0.85rem;
            color: #e2e8f0;
            line-height: 1.6;
            text-shadow: 0 1px 2px rgba(0,0,0,0.5);
        }
        .info-section a {
            color: #38bdf8;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s;
        }
        .info-section a:hover {
            color: #7dd3fc;
            text-decoration: underline;
        }

        /* Features preview */
        .features-row {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin-top: 24px;
        }
        .feature-chip {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 10px 14px;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex: 1;
            transition: all 0.3s ease;
        }
        .feature-chip:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, 0.3);
        }
        .feature-chip .material-icons {
            font-size: 1.4rem;
            color: #7dd3fc;
        }
        .feature-chip span {
            font-size: 0.75rem;
            font-weight: 600;
            text-align: center;
            color: #e2e8f0;
        }

        /* Responsive Adjustments for Mobile */
        @media (max-width: 480px) {
            .login-card {
                padding: 28px 20px;
                border-radius: 20px;
            }
            .login-logo img {
                width: 160px; /* Diperkecil dari 220px ke 160px */
                height: auto;
            }
            .login-logo h1 {
                font-size: 1.3rem; /* Diperkecil sedikit */
                margin-top: 8px; /* Kurangi jarak */
            }
            .login-logo p {
                font-size: 0.8rem;
            }
            .feature-chip {
                padding: 8px 10px;
            }
            .feature-chip .material-icons {
                font-size: 1.2rem;
            }
            .feature-chip span {
                font-size: 0.65rem;
            }
            .google-btn {
                padding: 12px;
                font-size: 0.95rem;
            }
        }

        /* Extra small mobile devices */
        @media (max-width: 360px) {
            .login-card {
                padding: 24px 16px;
                margin: 10px;
            }
            .login-logo img {
                width: 140px; /* Lebih kecil lagi untuk layar sangat kecil */
                height: auto;
            }
            .login-logo h1 {
                font-size: 1.2rem;
                margin-top: 6px;
            }
            .login-logo p {
                font-size: 0.75rem;
                margin-top: 4px;
            }
            .google-btn {
                padding: 10px;
                font-size: 0.9rem;
            }
            .features-row {
                gap: 8px;
            }
            .feature-chip {
                padding: 6px 8px;
            }
        }

        /* Back link */
        .back-link {
            display: block;
            text-align: center;
            margin-top: 20px;
            color: #f8fafc;
            font-size: 0.85rem;
            text-decoration: none;
            transition: color 0.2s;
            text-shadow: 0 1px 3px rgba(0,0,0,0.6);
        }
        .back-link:hover { color: #ffffff; text-decoration: underline; }

        /* Automatically shrink the card on smaller height devices to prevent clipping */
        @media (max-height: 750px) {
            .login-container {
                transform: scale(0.9);
                transform-origin: center center;
            }
        }
        @media (max-height: 650px) {
            .login-container {
                transform: scale(0.8);
                transform-origin: center center;
            }
        }
        @media (max-height: 550px) {
            .login-container {
                transform: scale(0.7);
                transform-origin: center center;
            }
        }

        @media (max-width: 480px) {
            .login-card { padding: 36px 24px; }
            .login-logo h1 { font-size: 1.5rem; }
            .features-row { gap: 10px; }
            .feature-chip { padding: 10px 6px; }
        }


