/* ===============================
   Login Page – Light Theme
   =============================== */

/* Local font kept if you need it */
@font-face {
  font-family: 'Bahij Janna';
  src: url('ALFONT_COM_بهيج-جنة-رفيع.TTF') format('truetype');
}

:root {
  --bg: #e9f0ff;
  --bg-alt: #f9fafb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #f6b01c;   /* Holoul yellow accent */
  --primary-soft: #fff7df;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 24px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  direction: rtl;
}

body {
  font-family: "Tajawal", "Bahij Janna", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0, #e9f0ff 35%, #d3e3ff 70%, #c3d7ff 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Layout ===== */

.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-card {
  width: min(100%, 420px);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 32px 26px;
  position: relative;
  overflow: hidden;
}

/* Decorative light overlay */
.login-card::before {
  content: "";
  position: absolute;
  inset-inline-start: -40px;
  inset-block-start: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 176, 28, .18), transparent 70%);
  pointer-events: none;
}

/* ===== Header / Logo ===== */

.login-logo {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.login-logo img {
  max-width: 120px;
  height: auto;
  margin-bottom: 12px;
}

.login-logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.login-logo p {
  font-size: 13px;
  color: var(--muted);
}

/* ===== Form ===== */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 14px;
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  text-align: right;
}

.field input::placeholder {
  color: #9ca3af;
}

.field input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(246, 176, 28, 0.18);
}

/* ===== Meta row (remember + forgot) ===== */

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  accent-color: var(--primary);
}

.link-muted {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.link-muted:hover {
  text-decoration: underline;
}

/* ===== Primary button ===== */

.btn-primary {
  margin-top: 8px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #f9b724, #f6b01c);
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 10px 25px rgba(249, 183, 36, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(249, 183, 36, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(249, 183, 36, 0.38);
}

/* ===== Footer text ===== */

.login-footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ===== Responsive ===== */

@media (max-width: 480px) {
  .login-card {
    padding-inline: 20px;
    border-radius: 18px;
  }

  .login-logo h1 {
    font-size: 20px;
  }

  .btn-primary {
    font-size: 14px;
  }
}
