
        :root {
            --main-color: #1e3a8a;
            --bg: #f3f4f6;
            --card: #ffffff;
            --text: #0f172a;
            --muted: #64748b;
            --border: #e2e8f0;
            --error: #ef4444;
        }

        * {
            box-sizing: border-box;
            font-family: 'Vazirmatn', sans-serif;
            outline: none;
        }

        body {
            height: 100vh;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--bg);
            color: var(--text);
            padding: 20px;
        }

        /* کانتینر کارت ورود */
        .login-card {
            background-color: var(--card);
            padding: 40px 30px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(30, 58, 138, 0.08);
            width: 100%;
            max-width: 400px;
            text-align: center;
            border: 1px solid var(--border);
        }

        /* لوگو یا آیکون بالا */
        .brand-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--main-color), #2547b3);
            color: #fff;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
        }

        h2 {
            margin: 0 0 10px 0;
            color: var(--main-color);
            font-size: 24px;
            font-weight: 800;
        }

        p.subtitle {
            margin: 0 0 30px 0;
            color: var(--muted);
            font-size: 14px;
        }

        /* استایل فرم */
        .input-group {
            margin-bottom: 20px;
            text-align: right;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 13px;
            font-weight: 700;
            color: #334155;
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper input {
            width: 100%;
            height: 50px;
            padding: 0 15px 0 45px; /* فضای خالی برای آیکون سمت چپ */
            border: 2px solid var(--border);
            border-radius: 12px;
            background: #f8fafc;
            font-size: 14px;
            transition: all 0.3s ease;
            color: var(--text);
        }

        .input-wrapper input:focus {
            border-color: var(--main-color);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.05);
        }

        /* آیکون داخل اینپوت */
        .input-icon {
            position: absolute;
            left: 15px;
            top: 58%;
            transform: translateY(-50%);
            color: var(--muted);
            pointer-events: none;
        }

        .input-wrapper input:focus + .input-icon {
            color: var(--main-color);
        }

        /* دکمه */
        .btn-submit {
            width: 100%;
            height: 50px;
            border: none;
            border-radius: 12px;
            background: var(--main-color);
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s ease;
            box-shadow: 0 8px 20px rgba(30, 58, 138, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 25px rgba(30, 58, 138, 0.25);
        }

        .btn-submit:active {
            transform: scale(0.98);
        }

        /* لینک پایین */
        .footer-link {
            margin-top: 25px;
            display: block;
            font-size: 14px;
            color: var(--muted);
            text-decoration: none;
        }

        .footer-link a {
            color: var(--main-color);
            font-weight: 800;
            text-decoration: none;
        }

        .footer-link a:hover {
            text-decoration: underline;
        }

        /* پیام خطا */
        .error-box {
            background: #fef2f2;
            color: var(--error);
            padding: 12px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 20px;
            border: 1px solid #fee2e2;
            display: none; /* پیش‌فرض مخفی */
            align-items: center;
            gap: 8px;
        }
        .error-box.show { display: flex; }

    