:root {
            --rm-red: #b94749;
            --rm-red-dark: #923a3d;
            --rm-coral: #f49275;
            --rm-green: #84997b;
            --rm-green-dark: #667c60;
            --rm-cream: #e1e5c5;
            --rm-sand: #f7f4ed;
            --rm-white: #ffffff;
            --rm-text: #30352f;
            --rm-muted: #70766e;
            --rm-border: rgba(48, 53, 47, 0.12);
            --rm-danger: #b4232d;
            --rm-shadow: 0 24px 70px rgba(69, 58, 48, 0.16);
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
            background: var(--rm-sand);
        }

        body {
            min-height: 100vh;
            min-height: 100dvh;
            margin: 0;
            color: var(--rm-text);
            background:
                radial-gradient(
                    circle at 10% 10%,
                    rgba(244, 146, 117, 0.20),
                    transparent 34rem
                ),
                radial-gradient(
                    circle at 90% 90%,
                    rgba(132, 153, 123, 0.22),
                    transparent 36rem
                ),
                var(--rm-sand);
            font-family:
                Inter,
                ui-sans-serif,
                system-ui,
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                sans-serif;
        }

        button,
        input {
            font: inherit;
        }

        .login-page {
            position: relative;
            display: flex;
            min-height: 100vh;
            min-height: 100dvh;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            padding:
                max(20px, env(safe-area-inset-top))
                max(16px, env(safe-area-inset-right))
                max(20px, env(safe-area-inset-bottom))
                max(16px, env(safe-area-inset-left));
        }

        .login-decoration {
            position: fixed;
            z-index: 0;
            width: 170px;
            height: 170px;
            border-radius: 38px;
            object-fit: cover;
            opacity: 0.11;
            pointer-events: none;
            user-select: none;
        }

        .login-decoration--sun {
            top: -55px;
            right: -45px;
            transform: rotate(12deg);
        }

        .login-decoration--bird {
            bottom: -45px;
            left: -45px;
            transform: rotate(-8deg);
        }

        .login-shell {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 1040px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.82);
            box-shadow: var(--rm-shadow);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        .brand-panel {
            display: none;
        }

        .login-panel {
            padding: 30px 22px;
        }

        .mobile-brand {
            margin-bottom: 28px;
            text-align: center;
        }

        .mobile-brand img {
            display: block;
            width: min(100%, 330px);
            height: auto;
            margin: 0 auto;
        }

        .login-header {
            margin-bottom: 26px;
        }

        .login-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            color: var(--rm-red);
            font-size: 0.78rem;
            font-weight: 750;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .login-eyebrow::before {
            width: 22px;
            height: 3px;
            border-radius: 999px;
            background: var(--rm-coral);
            content: "";
        }

        .login-title {
            margin: 0 0 9px;
            font-size: clamp(1.8rem, 7vw, 2.45rem);
            line-height: 1.08;
            letter-spacing: -0.045em;
        }

        .login-subtitle {
            max-width: 440px;
            margin: 0;
            color: var(--rm-muted);
            font-size: 0.97rem;
            line-height: 1.6;
        }

        .login-alert {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            margin-bottom: 20px;
            padding: 14px 16px;
            border: 1px solid rgba(180, 35, 45, 0.18);
            border-radius: 14px;
            color: var(--rm-danger);
            background: rgba(180, 35, 45, 0.07);
            font-size: 0.9rem;
            line-height: 1.45;
        }

        .login-alert-icon {
            flex: 0 0 auto;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            color: var(--rm-white);
            background: var(--rm-danger);
            font-size: 0.78rem;
            font-weight: 800;
            line-height: 22px;
            text-align: center;
        }

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

        .form-label-row {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: center;
            margin-bottom: 8px;
        }

        .form-label {
            color: var(--rm-text);
            font-size: 0.9rem;
            font-weight: 700;
        }

        .forgot-link {
            color: var(--rm-red);
            font-size: 0.84rem;
            font-weight: 650;
            text-decoration: none;
        }

        .forgot-link:hover {
            color: var(--rm-red-dark);
            text-decoration: underline;
        }

        .input-wrap {
            position: relative;
        }

        .form-control {
            width: 100%;
            min-height: 54px;
            border: 1px solid var(--rm-border);
            border-radius: 15px;
            outline: none;
            color: var(--rm-text);
            background: rgba(255, 255, 255, 0.92);
            padding: 0 48px 0 48px;
            font-size: 1rem;
            transition:
                border-color 160ms ease,
                box-shadow 160ms ease,
                background-color 160ms ease;
        }

        .form-control::placeholder {
            color: #a0a59e;
        }

        .form-control:hover {
            border-color: rgba(132, 153, 123, 0.48);
        }

        .form-control:focus {
            border-color: var(--rm-green);
            background: var(--rm-white);
            box-shadow: 0 0 0 4px rgba(132, 153, 123, 0.15);
        }

        .input-icon {
            position: absolute;
            top: 50%;
            left: 17px;
            width: 20px;
            height: 20px;
            color: var(--rm-green-dark);
            transform: translateY(-50%);
            pointer-events: none;
        }

        .password-toggle {
            position: absolute;
            top: 50%;
            right: 10px;
            display: inline-flex;
            width: 38px;
            height: 38px;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 10px;
            color: var(--rm-muted);
            background: transparent;
            cursor: pointer;
            transform: translateY(-50%);
        }

        .password-toggle:hover,
        .password-toggle:focus-visible {
            color: var(--rm-red);
            background: rgba(185, 71, 73, 0.08);
            outline: none;
        }

        .login-options {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
            justify-content: space-between;
            margin: 6px 0 24px;
        }

        .remember-label {
            display: inline-flex;
            gap: 10px;
            align-items: center;
            color: var(--rm-muted);
            font-size: 0.9rem;
            cursor: pointer;
            user-select: none;
        }

        .remember-checkbox {
            width: 19px;
            height: 19px;
            margin: 0;
            border-radius: 6px;
            accent-color: var(--rm-red);
        }

        .login-button {
            position: relative;
            display: flex;
            width: 100%;
            min-height: 56px;
            align-items: center;
            justify-content: center;
            gap: 10px;
            overflow: hidden;
            border: 0;
            border-radius: 15px;
            color: var(--rm-white);
            background:
                linear-gradient(
                    135deg,
                    var(--rm-red) 0%,
                    #ca5c54 58%,
                    var(--rm-coral) 100%
                );
            box-shadow: 0 13px 27px rgba(185, 71, 73, 0.24);
            font-size: 1rem;
            font-weight: 750;
            cursor: pointer;
            transition:
                transform 160ms ease,
                box-shadow 160ms ease;
        }

        .login-button::after {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(
                    110deg,
                    transparent 20%,
                    rgba(255, 255, 255, 0.20) 50%,
                    transparent 80%
                );
            content: "";
            transform: translateX(-110%);
            transition: transform 500ms ease;
        }

        .login-button:hover {
            box-shadow: 0 17px 34px rgba(185, 71, 73, 0.31);
            transform: translateY(-1px);
        }

        .login-button:hover::after {
            transform: translateX(110%);
        }

        .login-button:active {
            transform: translateY(0);
        }

        .login-footer {
            margin-top: 25px;
            color: var(--rm-muted);
            font-size: 0.78rem;
            line-height: 1.5;
            text-align: center;
        }

        .login-footer strong {
            color: var(--rm-green-dark);
        }

        @media (min-width: 760px) {
            .login-page {
                padding: 34px;
            }

            .login-shell {
                display: grid;
                grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
                min-height: 660px;
            }

            .brand-panel {
                position: relative;
                display: flex;
                overflow: hidden;
                flex-direction: column;
                justify-content: space-between;
                padding: 46px;
                color: var(--rm-white);
                background:
                    linear-gradient(
                        145deg,
                        rgba(102, 124, 96, 0.97),
                        rgba(132, 153, 123, 0.95)
                    );
            }

            .brand-panel::before {
                position: absolute;
                top: -125px;
                right: -110px;
                width: 330px;
                height: 330px;
                border: 70px solid rgba(225, 229, 197, 0.10);
                border-radius: 50%;
                content: "";
            }

            .brand-panel::after {
                position: absolute;
                bottom: -130px;
                left: -115px;
                width: 300px;
                height: 300px;
                border-radius: 50%;
                background: rgba(244, 146, 117, 0.15);
                content: "";
            }

            .brand-logo-card {
                position: relative;
                z-index: 1;
                padding: 25px;
                border: 1px solid rgba(255, 255, 255, 0.24);
                border-radius: 23px;
                background: rgba(255, 255, 255, 0.92);
                box-shadow: 0 16px 45px rgba(33, 50, 31, 0.17);
            }

            .brand-logo-card img {
                display: block;
                width: 100%;
                height: auto;
            }

            .brand-message {
                position: relative;
                z-index: 1;
                max-width: 390px;
            }

            .brand-message h2 {
                margin: 0 0 14px;
                font-size: clamp(2rem, 3.6vw, 3.25rem);
                line-height: 1.02;
                letter-spacing: -0.045em;
            }

            .brand-message p {
                margin: 0;
                color: rgba(255, 255, 255, 0.82);
                font-size: 1rem;
                line-height: 1.7;
            }

            .brand-symbols {
                position: relative;
                z-index: 1;
                display: flex;
                gap: 10px;
                margin-top: 26px;
            }

            .brand-symbol {
                width: 48px;
                height: 48px;
                border: 1px solid rgba(255, 255, 255, 0.22);
                border-radius: 14px;
                object-fit: cover;
                box-shadow: 0 8px 18px rgba(40, 55, 39, 0.12);
            }

            .login-panel {
                display: flex;
                flex-direction: column;
                justify-content: center;
                padding: 55px clamp(40px, 6vw, 78px);
                background: rgba(255, 255, 255, 0.74);
            }

            .mobile-brand {
                display: none;
            }
        }

        @media (min-width: 1100px) {
            .login-decoration {
                width: 220px;
                height: 220px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                transition: none !important;
                animation: none !important;
            }
        }

.auth-content { width: 100%; }
.auth-form-errors { margin-bottom: 18px; }
.auth-form-errors ul { margin: 0; padding-left: 18px; }
.auth-form-errors li { margin: 3px 0; }
.auth-field-errors { margin-top: 7px; color: var(--rm-danger); font-size: .82rem; line-height: 1.4; }
.auth-field-errors ul { margin: 0; padding-left: 18px; }
.auth-help { margin-top: 8px; color: var(--rm-muted); font-size: .82rem; line-height: 1.5; }
.auth-notice { margin-bottom: 22px; padding: 17px 18px; border: 1px solid rgba(132,153,123,.24); border-radius: 15px; background: rgba(132,153,123,.10); color: var(--rm-text); font-size: .92rem; line-height: 1.55; }
.auth-notice--success { border-color: rgba(102,124,96,.30); background: rgba(225,229,197,.48); }
.auth-notice__icon { display:inline-flex; width:28px; height:28px; margin-right:9px; align-items:center; justify-content:center; border-radius:50%; background:var(--rm-green); color:#fff; font-weight:800; vertical-align:middle; }
.auth-back { display:inline-flex; gap:7px; align-items:center; margin-top:20px; color:var(--rm-red); font-size:.88rem; font-weight:700; text-decoration:none; }
.auth-back:hover { color:var(--rm-red-dark); text-decoration:underline; }
.auth-secondary { margin-top: 18px; text-align:center; }
.auth-secondary a { color:var(--rm-red); font-size:.88rem; font-weight:700; text-decoration:none; }
.auth-secondary a:hover { text-decoration:underline; }
.auth-checkmark { width:68px; height:68px; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; border-radius:22px; color:#fff; background:linear-gradient(145deg,var(--rm-green-dark),var(--rm-green)); box-shadow:0 14px 30px rgba(102,124,96,.22); font-size:2rem; font-weight:800; }
