/* ════════════════════════════════════════════════════════════
   OTTIMA — login.css
   شاشة تسجيل الدخول
   جزء من main.css الأصلي، اتقسّم لملفات أصغر للصيانة الأسهل.
   ════════════════════════════════════════════════════════════ */

/* ══════════ LOGIN PAGE ══════════ */
.login-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3; animation: orbFloat linear infinite; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0); } 40% { transform: translate(-30px,50px); } 70% { transform: translate(20px,-20px); } }
.login-grid {
  position: absolute; inset: -20%; width: 140%; height: 140%; opacity: .4;
  background-image: linear-gradient(rgba(201,168,76,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(201,168,76,.06) 1px,transparent 1px);
  background-size: 60px 60px;
}
.login-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; padding-top: calc(40px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.login-card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden; box-shadow: var(--shadow-lg);
  animation: cardIn .5s cubic-bezier(.22,1,.36,1);
}
@keyframes cardIn { from { opacity:0; transform: translateY(20px) scale(.97); } to { opacity:1; transform:none; } }
.login-accent { height: 3px; background: linear-gradient(90deg,transparent,var(--gold-d),var(--gold-l),var(--gold-d),transparent); background-size:200%; animation: sh 3s linear infinite; }
@keyframes sh { 0% { background-position: 200%; } 100% { background-position: -200%; } }
.login-body { padding: 32px 28px 28px; }
.login-logo {
  width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 18px;
  border: 2px solid var(--gold-b); overflow: hidden; box-shadow: var(--shadow-md);
  animation: logoIn .6s .1s cubic-bezier(.22,1,.36,1) both, logoGlow 3s 1s ease-in-out infinite;
}
@keyframes logoIn { from { opacity:0; transform: scale(.6) rotate(-8deg); } to { opacity:1; transform:none; } }
@keyframes logoGlow { 0%,100% { box-shadow: var(--shadow-md); } 50% { box-shadow: 0 0 0 6px rgba(201,168,76,.14), var(--shadow-md); } }
.login-logo img { width: 100%; height: 100%; object-fit: cover; }
.login-title { text-align: center; margin-bottom: 24px; animation: fadeUp .5s .2s cubic-bezier(.22,1,.36,1) both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
.login-title h1 { font-size: 22px; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(120deg, var(--gold-d), var(--gold), var(--gold-l), var(--gold));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brandShift 6s ease infinite;
}
.login-title p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.input-group { position: relative; margin-bottom: 16px; animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both; }
.input-group:nth-of-type(1) { animation-delay: .28s; }
.input-group:nth-of-type(2) { animation-delay: .34s; }
.input-group:nth-of-type(3) { animation-delay: .40s; }
.input-group:nth-of-type(4) { animation-delay: .46s; }
.input-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
.input-group .ico { position: absolute; right: 12px; top: 50%; transform: translateY(calc(-50% + 11px)); color: var(--muted); pointer-events: none; transition: color .2s; }
.input-group .ico svg { width: 16px; height: 16px; }
.input-group:focus-within .ico { color: var(--gold); }
.input-group .toggle { position: absolute; left: 10px; top: 50%; transform: translateY(calc(-50% + 11px)); background: none; border: none; color: var(--muted); cursor: pointer; }
.login-input {
  width: 100%; padding: 11px 40px; border: 1.5px solid var(--border); border-radius: var(--rs);
  background: var(--input); color: var(--text); font-size: 14px; outline: none; direction: ltr; text-align: right;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.login-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
.login-input::placeholder { color: var(--muted); }
.login-btn {
  width: 100%; height: 46px; border: none; border-radius: var(--rs);
  font-size: 15px; font-weight: 700; color: #1C1A17; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-d), var(--gold), var(--gold-l));
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden;
  animation: fadeUp .5s .52s cubic-bezier(.22,1,.36,1) both;
}
.login-btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 66%);
  background-size: 220% 100%; background-position: 150% 0; transition: background-position .55s ease;
}
.login-btn:hover:not(:disabled)::after { background-position: -50% 0; }
.login-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.login-btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-footer { background: var(--hover); border-top: 1px solid var(--border); padding: 12px 28px; text-align: center; font-size: 11.5px; color: var(--muted); display:flex; align-items:center; justify-content:center; gap:6px; }

