        body {
            background: #f4f4f4;
            font-family: Arial, sans-serif;
        }

        .auth-container {
            max-width: 400px;
            margin: 50px auto;
            padding: 30px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            direction: <?php echo is_rtl() ? 'rtl' : 'ltr'; ?>;
        }

        .auth-container h2 {
            text-align: center;
            margin-bottom: 25px;
            font-size: 24px;
            color: #333;
        }

        .auth-container form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .auth-container input[type="text"],
        .auth-container input[type="password"] {
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 6px;
            font-size: 15px;
            width: 100%;
            box-sizing: border-box;
        }

        .auth-remember {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }

        html[dir="rtl"] .auth-remember {
            flex-direction: row-reverse;
            justify-content: flex-end;
        }

        .auth-remember input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            margin: 0;
        }

        .auth-container button[type="submit"] {
            padding: 12px;
            background-color: #0073aa;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .auth-container button[type="submit"]:hover {
            background-color: #005d8f;
        }

        .auth-container a {
            color: #0073aa;
            text-align: center;
            display: block;
            margin-top: 10px;
            text-decoration: none;
            font-size: 15px;
        }

        .auth-container a:hover {
            text-decoration: underline;
        }


        /*new */

        .password-wrapper {
          position: relative;
        }

        .password-wrapper input {
          width: 100%;
          padding: 12px;
          border: 1px solid #ccc;
          border-radius: 6px;
          font-size: 15px;
          box-sizing: border-box;
          padding-inline-end: 2.25rem; /* يترك مساحة للأيقونة (يمين في LTR، يسار في RTL) */
        }

        .toggle-password {
          position: absolute;
          inset-block-start: 50%;
          inset-inline-end: 10px;      /* يمين في LTR، يسار في RTL تلقائياً */
          transform: translateY(-50%);
          background: none;
          border: none;
          cursor: pointer;
          line-height: 1;
          font-size: 1rem;
          padding: 0;
        }

        /* فallback للمتصفحات القديمة */
        [dir="rtl"] .password-wrapper input { padding-left: 2.25rem; padding-right: 12px; }
        [dir="rtl"] .toggle-password { left: 10px; right: auto; }
                