:root {
            --brand: #721637;
            --brand-dark: #3d091b;
            --gold: #d6ae5c;
            --cream: #f8f1e6;
            --text: #21191c;
            --muted: #777077;
        }

        * {
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
        }

        body {
            min-height: 100vh;
            min-height: 100dvh;
            margin: 0;
            font-family: Arial, sans-serif;
            color: var(--text);
            background:
                radial-gradient(
                    circle at top left,
                    rgba(214, 174, 92, 0.25),
                    transparent 34%
                ),
                radial-gradient(
                    circle at bottom right,
                    rgba(114, 22, 55, 0.14),
                    transparent 34%
                ),
                linear-gradient(
                    135deg,
                    #fffaf1,
                    var(--cream)
                );
        }

        button,
        input {
            font: inherit;
        }

        .login-page {
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            padding: 22px;
        }

        .top-navigation {
            width: 100%;
            max-width: 1140px;
            margin: 0 auto 22px;
            padding: 12px 16px;
            border: 1px solid rgba(255, 255, 255, 0.9);
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.82);
            box-shadow: 0 12px 35px rgba(54, 18, 31, 0.10);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .navbar-logo {
            width: 48px;
            height: 48px;
            flex: 0 0 48px;
            padding: 4px;
            border-radius: 14px;
            object-fit: contain;
            background: #fff;
            box-shadow: 0 6px 18px rgba(53, 13, 28, 0.12);
        }

        .brand-name {
            color: #231c1f;
            font-size: 1rem;
            font-weight: 700;
        }

        .website-button {
            min-height: 44px;
            padding: 9px 20px;
            border: 1px solid var(--brand);
            border-radius: 50px;
            color: var(--brand);
            background: #fff;
            font-weight: 600;
            text-decoration: none;
            transition:
                transform 0.2s ease,
                color 0.2s ease,
                background 0.2s ease;
        }

        .website-button:hover {
            color: #fff;
            background: var(--brand);
            transform: translateY(-1px);
        }

        .login-content {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-bottom: 22px;
        }

        .login-card {
            width: 100%;
            max-width: 430px;
            overflow: hidden;
            border: 1px solid rgba(114, 22, 55, 0.10);
            border-radius: 26px;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 28px 70px rgba(54, 18, 31, 0.17);
        }

        .login-card-body {
            padding: 38px;
        }

        .login-logo-box {
            width: 82px;
            height: 82px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 22px;
            padding: 9px;
            border-radius: 22px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(61, 9, 27, 0.14);
        }

        .login-logo {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .login-title {
            margin-bottom: 8px;
            color: var(--text);
            font-size: 2rem;
            font-weight: 800;
            text-align: center;
        }

        .login-subtitle {
            margin-bottom: 30px;
            color: var(--muted);
            font-size: 0.92rem;
            text-align: center;
        }

        .alert {
            border: 0;
            border-radius: 14px;
            font-size: 0.9rem;
        }

        .form-label {
            color: #30262a;
            font-size: 0.9rem;
            font-weight: 700;
        }

        .input-group {
            border-radius: 14px;
        }

        .input-group-text,
        .form-control,
        .password-toggle {
            min-height: 52px;
            border-color: #ddd6d9;
            background: #fff;
        }

        .input-group-text {
            padding: 0 16px;
            border-radius: 14px 0 0 14px;
            color: var(--brand);
        }

        .form-control {
            font-size: 0.95rem;
        }

        .form-control:focus {
            position: relative;
            z-index: 3;
            border-color: rgba(114, 22, 55, 0.55);
            box-shadow: 0 0 0 0.22rem rgba(114, 22, 55, 0.10);
        }

        .password-toggle {
            width: 52px;
            border-radius: 0 14px 14px 0;
            color: #70666a;
        }

        .password-toggle:hover,
        .password-toggle:focus {
            color: var(--brand);
            background: #faf6f7;
        }

        .login-button {
            min-height: 54px;
            margin-top: 8px;
            border: 0;
            border-radius: 15px;
            color: #fff;
            background:
                linear-gradient(
                    135deg,
                    var(--brand),
                    var(--brand-dark)
                );
            box-shadow: 0 12px 25px rgba(84, 12, 38, 0.22);
            font-weight: 700;
            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease,
                opacity 0.2s ease;
        }

        .login-button:hover:not(:disabled) {
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 16px 30px rgba(84, 12, 38, 0.28);
        }

        .login-button:disabled {
            cursor: wait;
            opacity: 0.8;
        }

        .spin {
            display: inline-block;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .login-footer {
            margin-top: 26px;
            color: #81767a;
            font-size: 0.78rem;
            text-align: center;
        }

        .mobile-home-link {
            display: none;
        }

        @media (max-width: 575.98px) {
            .login-page {
                padding: 12px;
            }

            .top-navigation {
                margin-bottom: 14px;
                padding: 10px 12px;
                border-radius: 18px;
            }

            .navbar-logo {
                width: 42px;
                height: 42px;
                flex-basis: 42px;
            }

            .brand-name {
                max-width: 150px;
                overflow: hidden;
                font-size: 0.9rem;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .website-button {
                width: 44px;
                height: 44px;
                min-height: 44px;
                flex: 0 0 44px;
                padding: 0;
            }

            .website-button span {
                display: none;
            }

            .website-button i {
                margin: 0 !important;
            }

            .login-content {
                align-items: flex-start;
                padding-top: 8px;
            }

            .login-card {
                border-radius: 22px;
            }

            .login-card-body {
                padding: 28px 21px;
            }

            .login-logo-box {
                width: 72px;
                height: 72px;
                margin-bottom: 18px;
            }

            .login-title {
                font-size: 1.7rem;
            }

            .login-subtitle {
                margin-bottom: 24px;
            }

            .mobile-home-link {
                display: block;
                margin-top: 22px;
                color: var(--brand);
                font-size: 0.85rem;
                font-weight: 700;
                text-align: center;
                text-decoration: none;
            }
        }

        @media (max-height: 720px) and (min-width: 576px) {
            .login-page {
                padding-top: 14px;
                padding-bottom: 14px;
            }

            .top-navigation {
                margin-bottom: 14px;
            }

            .login-card-body {
                padding-top: 28px;
                padding-bottom: 28px;
            }

            .login-logo-box {
                width: 68px;
                height: 68px;
                margin-bottom: 14px;
            }

            .login-title {
                font-size: 1.75rem;
            }

            .login-subtitle {
                margin-bottom: 20px;
            }
        }
