
        :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 {
            min-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 25px 0; color: var(--muted); font-size: 14px; }

        .input-group { margin-bottom: 15px; text-align: right; }
        .input-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #334155; }
        
        .input-wrapper { position: relative; }
        .input-wrapper input {
            width: 100%; height: 48px; 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); margin-top: 10px;
        }
        .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(30, 58, 138, 0.25); }

        .footer-link { margin-top: 25px; display: block; font-size: 14px; color: var(--muted); }
        .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; justify-content: center;
        }
        .error-box.show { display: flex; }
            @keyframes shake {
            0% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            50% { transform: translateX(5px); }
            75% { transform: translateX(-5px); }
            100% { transform: translateX(0); }
        }