/* Custom CSS for Car Management Dashboard */

/* Import Vazir Font */
@font-face {
    font-family: 'Vazir'; /* نام دلخواه برای فونت */
    src: url('../fonts/Vazir-Medium.woff2') format('woff2'); /* مسیر فونت نسبت به فایل CSS */
    font-weight: 500; /* یا مقدار مناسب با وزن فونت */
    font-style: normal;
}
/* Vazir Light */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Light.woff2') format('woff2');
    font-weight: 300; /* Light */
    font-style: normal;
}

/* Vazir Medium */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium.woff2') format('woff2');
    font-weight: 500; /* Medium */
    font-style: normal;
}

/* Apply Vazir Font to all elements EXCEPT FontAwesome icons */
* {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Preserve FontAwesome font-family for icons */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* Ensure FontAwesome icons display properly */
.fa-solid,
.fas {
    font-weight: 900;
}

.fa-regular,
.far {
    font-weight: 400;
}

.fa-brands,
.fab {
    font-weight: 400;
}

/* Improve font rendering for Vazir */
body {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Font weights for Vazir */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-black {
    font-weight: 900;
}
    :root {
      --bg-start: #f8efe7;
      --bg-end: #d8e2dc;
      --card: rgba(255, 255, 255, 0.9);
      --text: #14213d;
      --muted: #5c677d;
      --accent: #d97706;
      --accent-dark: #b45309;
      --border: rgba(20, 33, 61, 0.12);
      --shadow: 0 24px 60px rgba(20, 33, 61, 0.16);
      --danger-bg: #fff1f2;
      --danger-text: #be123c;
      --success-bg: #ecfdf5;
      --success-text: #047857;
    }

    * { box-sizing: border-box; }

    body,
    input,
    button {
      font-family: "Vazir", Tahoma, "Segoe UI", sans-serif;
      font-weight: 500;
    }

    body {
      margin: 0;
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 24px;
      color: var(--text);
      background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(20, 33, 61, 0.14), transparent 32%),
        linear-gradient(135deg, var(--bg-start), var(--bg-end));
    }

    .login-card {
      width: min(100%, 420px);
      padding: 32px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: var(--card);
      box-shadow: var(--shadow);
      backdrop-filter: blur(14px);
    }

    .badge, .message {
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
    }

    .badge {
      padding: 6px 12px;
      background: rgba(217, 119, 6, 0.12);
      color: var(--accent-dark);
      font-size: 13px;
      margin-bottom: 16px;
    }

    h1 { margin: 0 0 8px; font-size: 30px; }
    p { margin: 0 0 24px; color: var(--muted); line-height: 1.8; font-size: 14px; }
    .field { margin-bottom: 16px; }
    label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }

    input[type="email"],
    input[type="password"] {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid rgba(20, 33, 61, 0.14);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.75);
      font-size: 15px;
    }

    input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
    }

    .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 4px 0 22px;
      font-size: 13px;
    }

    .row label {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      font-weight: 400;
      color: var(--muted);
    }

    .row input[type="checkbox"] { width: auto; margin: 0; }

    a {
      color: var(--accent-dark);
      text-decoration: none;
      font-weight: 700;
    }

    a:hover { text-decoration: underline; }

    button {
      width: 100%;
      border: none;
      border-radius: 16px;
      padding: 15px 18px;
      font-size: 15px;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      cursor: pointer;
      box-shadow: 0 16px 30px rgba(180, 83, 9, 0.24);
    }

    .footer {
      text-align: center;
      margin-top: 20px;
      color: var(--muted);
      font-size: 14px;
    }

    .alerts {
      display: grid;
      gap: 10px;
      margin-bottom: 18px;
    }

    .message {
      padding: 10px 14px;
      font-size: 14px;
      line-height: 1.7;
    }

    .message.error {
      background: var(--danger-bg);
      color: var(--danger-text);
    }

    .message.success {
      background: var(--success-bg);
      color: var(--success-text);
    }

    @media (max-width: 480px) {
      .login-card { padding: 24px; border-radius: 20px; }
      h1 { font-size: 26px; }
      .row { flex-direction: column; align-items: flex-start; }
    }
