:root {
            --primary: #b31634;
            --primary-dark: #8f1028;
            --secondary: #f5c542;
            --ink: #252122;
            --muted: #5f5962;
            --line: #dedfe3;
            --soft: #f7f7f8;
            --panel: #ffffff;
            --shadow: 0 30px 90px rgba(17, 24, 39, .11);
        }

        * {
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            margin: 0;
            color: var(--ink);
            background:
                radial-gradient(circle at top left, rgba(179, 22, 52, .12), transparent 34%),
                radial-gradient(circle at bottom right, rgba(245, 197, 66, .18), transparent 32%),
                linear-gradient(135deg, #ffffff 0%, #faf9f6 100%);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
            font-weight: 400;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .login-page {
            display: grid;
            place-items: center;
            min-height: 100vh;
            padding: 34px 20px;
        }

        .login-card {
            width: min(100%, 480px);
            padding: 42px 38px;
            border: 1px solid var(--line);
            border-top: 4px solid var(--primary);
            border-radius: 18px;
            background: var(--panel);
            box-shadow: var(--shadow);
        }

        .login-logo {
            display: block;
            width: 82px;
            height: 82px;
            margin: 0 auto 26px;
            object-fit: contain;
        }

        .login-card h1 {
            margin: 0 0 6px;
            color: var(--primary);
            text-align: center;
            font-size: 31px;
            font-weight: 700;
            line-height: 1.16;
        }

        .login-card .subtitle {
            margin: 0 0 34px;
            color: var(--muted);
            text-align: center;
            font-size: 15px;
            font-weight: 400;
        }

        .field {
            position: relative;
            margin-bottom: 16px;
        }

        .field label {
            display: block;
            margin-bottom: 7px;
            color: #4b4f58;
            font-size: 14px;
            font-weight: 700;
        }

        .input-wrap {
            position: relative;
        }

        .field-icon {
            position: absolute;
            top: 50%;
            left: 17px;
            transform: translateY(-50%);
            color: #5f5962;
            font-size: 17px;
            line-height: 1;
            pointer-events: none;
        }

        .field input {
            width: 100%;
            height: 58px;
            padding: 0 18px 0 48px;
            border: 1px solid var(--line);
            border-radius: 12px;
            color: var(--ink);
            background: #fff;
            font-family: inherit;
            font-size: 16px;
            outline: none;
            transition: border-color .16s ease, box-shadow .16s ease;
        }

        .field input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(245, 197, 66, .24);
        }

        #pass::-webkit-caps-lock-indicator {
            display: none;
            opacity: 0;
            visibility: hidden;
        }

        .caps-lock-warning {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            min-height: 36px;
            margin: 10px 0 0;
            padding: 10px 12px;
            border: 1px solid rgba(179, 22, 52, .2);
            border-radius: 10px;
            color: var(--primary-dark);
            background: #fff7f7;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.3;
        }

        .caps-lock-warning i {
            flex: 0 0 auto;
        }

        .caps-lock-warning span {
            min-width: 0;
        }

        .caps-lock-warning[hidden] {
            display: none;
        }

        a:focus-visible,
        input:focus-visible,
        button:focus-visible {
            outline: 3px solid rgba(179, 22, 52, .35);
            outline-offset: 3px;
        }

        .form-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin: 2px 0 24px;
            color: #3a3d42;
            font-size: 14px;
        }

        .remember {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            cursor: pointer;
        }

        .remember input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        .forgot-link {
            color: var(--primary);
            font-weight: 600;
        }

        .login-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 58px;
            border: 0;
            border-radius: 12px;
            color: #fff;
            background: var(--primary);
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 12px 26px rgba(179, 22, 52, .22);
            transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
        }

        .login-button i {
            margin-left: 8px;
            font-size: 17px;
            line-height: 1;
        }

        .login-button:hover,
        .login-button:focus-visible {
            background: var(--primary-dark);
            box-shadow: 0 14px 30px rgba(143, 16, 40, .26);
            outline: 0;
            transform: translateY(-1px);
        }

        .login-error {
            margin: 0 0 18px;
            padding: 12px 14px;
            border: 1px solid rgba(179, 22, 52, .25);
            border-radius: 10px;
            color: var(--primary-dark);
            background: rgba(179, 22, 52, .08);
            font-size: 14px;
            font-weight: 600;
        }

        .login-footer {
            margin-top: 30px;
            padding-top: 26px;
            border-top: 1px solid var(--line);
            color: var(--muted);
            text-align: center;
            font-size: 14px;
        }

        .login-footer a {
            color: var(--primary);
            font-weight: 600;
        }

        @media (max-width: 720px) {
            .login-page {
                padding: 18px 14px;
            }

            .login-card {
                padding: 32px 20px;
                border-radius: 14px;
            }

            .login-card h1 {
                font-size: 28px;
            }

            .form-row {
                align-items: flex-start;
                flex-direction: column;
                gap: 10px;
            }
        }
