* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                         "Helvetica Neue", Arial, sans-serif;
            color: #333;
            background: linear-gradient(135deg, #f4f8fc 0%, #eef5fb 50%, #f8fbfe 100%);
        }

        .login-card {
            width: 420px;
            padding: 42px 40px 36px;
            background: #fff;
            border-radius: 18px;
            box-shadow:
                0 14px 40px rgba(32, 122, 214, 0.12),
                0 2px 10px rgba(0, 0, 0, 0.04);
        }

        .logo-area {
            margin-bottom: 28px;
            text-align: center;
        }

        .logo-title {
            color: #207ad6;
            font-size: 26px;
            font-weight: 700;
        }

        .form-title {
            margin-bottom: 18px;
            color: #333;
            font-size: 18px;
            font-weight: 600;
        }

        .error-message {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-bottom: 16px;
            padding: 11px 14px;
            color: #d4380d;
            font-size: 14px;
            background: #fff2f0;
            border: 1px solid #ffccc7;
            border-radius: 8px;
        }

        .error-icon {
            display: flex;
            flex-shrink: 0;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            background: #ff4d4f;
            border-radius: 50%;
        }

        .password-wrapper {
            position: relative;
            margin-bottom: 20px;
        }

        .password-input {
            width: 100%;
            height: 52px;
            padding: 0 54px 0 16px;
            font-size: 16px;
            background: #fbfcfe;
            border: 1.5px solid #dfe5ec;
            border-radius: 10px;
            outline: none;
            transition:
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
        }

        .password-input:hover {
            border-color: #b8c4d1;
        }

        .password-input:focus {
            background: #fff;
            border-color: #207ad6;
            box-shadow: 0 0 0 4px rgba(32, 122, 214, 0.08);
        }

        .password-input.input-error {
            border-color: #ff7875;
        }

        .password-input.input-error:focus {
            border-color: #ff4d4f;
            box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.08);
        }

        .toggle-password {
            position: absolute;
            top: 50%;
            right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            padding: 0;
            color: #8a94a3;
            background: transparent;
            border: 0;
            border-radius: 8px;
            outline: none;
            cursor: pointer;
            transform: translateY(-50%);
            transition:
                color 0.2s ease,
                background 0.2s ease;
        }

        .toggle-password:hover {
            color: #207ad6;
            background: rgba(32, 122, 214, 0.07);
        }

        .toggle-password:focus-visible {
            color: #207ad6;
            box-shadow: 0 0 0 3px rgba(32, 122, 214, 0.12);
        }

        .toggle-password svg {
            display: block;
            width: 20px;
            height: 20px;
            pointer-events: none;
        }

        .toggle-password svg[hidden] {
            display: none !important;
        }

        .login-btn {
            width: 100%;
            height: 50px;
            color: #fff;
            font-size: 16px;
            font-weight: 600;
            background: #207ad6;
            border: 0;
            border-radius: 10px;
            cursor: pointer;
            transition:
                background 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
        }

        .login-btn:hover {
            background: #1769bd;
            box-shadow: 0 8px 18px rgba(32, 122, 214, 0.22);
            transform: translateY(-1px);
        }

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

        .back-link {
            display: block;
            margin-top: 18px;
            color: #7f8c9a;
            font-size: 14px;
            text-align: center;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .back-link:hover {
            color: #207ad6;
        }

        .footer-text {
            margin-top: 26px;
            color: #a1a9b3;
            font-size: 12px;
            text-align: center;
        }

        @media (max-width: 520px) {
            .login-card {
                width: calc(100% - 32px);
                padding: 34px 24px 30px;
            }
        }
