/* ============================
   PAT AUTH SYSTEM - RTL
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --pat-main: #0d6efd;
    --pat-bg: #f4f7fb;
    --pat-card: #ffffff;
    --pat-text: #1f2d3d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--pat-bg);
    direction: rtl;
    color: var(--pat-text);

   
    padding: 0;
    background-image: url('../MyImages/bg02.jpg'); /* ضع الصورة هنا */
    background-size: cover; /* الصورة تغطي كامل الصفحة */
    background-position: center; /* توسيط الصورة */
    background-repeat: no-repeat; /* منع التكرار */
    background-attachment: fixed; /* الصورة ثابتة أثناء التمرير */
}

/* Layout */
.pat-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card */
.pat-card {
    background: var(--pat-card);
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

/* Header */
.pat-header {
    text-align: center;
    margin-bottom: 20px;
}

    .pat-header img {
        max-height: 70px;
        margin-bottom: 10px;
    }

    .pat-header h1 {
        font-size: 20px;
        font-weight: 700;
        margin: 0;
    }

/* Inputs */
.pat-group {
    margin-bottom: 14px;
}

.pat-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pat-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #dbe3ec;
    font-family: Cairo;
}

    .pat-input:focus {
        outline: none;
        border-color: var(--pat-main);
    }

/* Button */
.pat-btn {
    width: 100%;
    background: var(--pat-main);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

    .pat-btn:hover {
        opacity: .9;
    }

/* Links */
.pat-links {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

    .pat-links a {
        color: var(--pat-main);
        text-decoration: none;
    }

/* Alerts */
.pat-alert {
    background: #ffe1e1;
    color: #b30000;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Responsive */

/* موبايل (حتى 767px) */
@media (max-width: 767px) {
    .pat-card {
        max-width: 90%; /* تقريبًا كامل الشاشة مع مسافة بسيطة من الجوانب */
        margin: 20px auto; /* يوسّط الكارد */
        padding: 15px; /* مساحة داخلية مناسبة */
    }
}

/* تابلت (768px إلى 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .pat-card {
        max-width: 460px;
        margin: 40px auto;
        padding: 20px;
    }
}

/* كمبيوتر (1200px فأكثر) */
@media (min-width: 1200px) {
    .pat-card {
        max-width: 500px;
        margin: 60px auto;
        padding: 25px;
    }
}
