/**
 * login-shape-themes.css
 * شاشة الدخول تتبع شكل الواجهة (classic / glass / futuristic)
 * specificity أعلى من #login-screen .login-box في royal.css
 */

/* ===== كلاسيك ===== */
html[data-royal-shape="classic"] #login-screen,
html:not([data-royal-shape]) #login-screen {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%) !important;
}
html[data-royal-shape="classic"] #login-screen .login-box,
html:not([data-royal-shape]) #login-screen .login-box {
  background: rgba(255, 255, 255, 0.97) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-top: 5px solid #C9A84C !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
  color: #1a1a2e !important;
}
html[data-royal-shape="classic"] #login-screen .login-box h2,
html:not([data-royal-shape]) #login-screen .login-box h2 {
  color: #C9A84C !important;
}
html[data-royal-shape="classic"] #login-screen .login-box label,
html:not([data-royal-shape]) #login-screen .login-box label {
  color: #4a4a5a !important;
}
html[data-royal-shape="classic"] #login-screen .login-box input,
html:not([data-royal-shape]) #login-screen .login-box input {
  background: #f8f7f4 !important;
  border: 2px solid rgba(201, 168, 76, 0.35) !important;
  color: #1a1a2e !important;
  border-radius: 12px !important;
}
html[data-royal-shape="classic"] #login-screen .login-box input:focus,
html:not([data-royal-shape]) #login-screen .login-box input:focus {
  border-color: #C9A84C !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2) !important;
}
html[data-royal-shape="classic"] #login-screen .login-box button[type="submit"],
html[data-royal-shape="classic"] #login-screen #login-btn,
html[data-royal-shape="classic"] #login-screen .btn-login,
html:not([data-royal-shape]) #login-screen button[type="submit"] {
  background: linear-gradient(135deg, #1A1A2E, #2a2a4a) !important;
  color: #C9A84C !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.35) !important;
}

/* ===== زجاجي ===== */
html[data-royal-shape="glass"] #login-screen {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(180, 160, 255, 0.35), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(120, 180, 255, 0.3), transparent 50%),
    linear-gradient(145deg, #e8eefc 0%, #f0e8ff 40%, #e4f0fc 100%) !important;
}
html[data-royal-shape="glass"] #login-screen .login-box {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(28px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
  border: 1px solid rgba(140, 120, 200, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 28px !important;
  box-shadow:
    0 20px 50px rgba(100, 80, 180, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  color: #2a2a4a !important;
}
html[data-royal-shape="glass"] #login-screen .login-box h2 {
  color: #5b4fc7 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
html[data-royal-shape="glass"] #login-screen .login-box label {
  color: #4a4a6a !important;
}
html[data-royal-shape="glass"] #login-screen .login-box input {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1.5px solid rgba(140, 120, 200, 0.35) !important;
  color: #2a2a4a !important;
  border-radius: 14px !important;
}
html[data-royal-shape="glass"] #login-screen .login-box input:focus {
  border-color: #7b6cff !important;
  box-shadow: 0 0 0 3px rgba(123, 108, 255, 0.2) !important;
}
html[data-royal-shape="glass"] #login-screen .login-box button[type="submit"],
html[data-royal-shape="glass"] #login-screen #login-btn,
html[data-royal-shape="glass"] #login-screen .btn-login {
  background: linear-gradient(135deg, #7b6cff, #5b4fc7) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(123, 108, 255, 0.35) !important;
}
html[data-royal-shape="glass"] #login-screen .toggle-password-btn {
  color: #5b4fc7 !important;
}

/* ===== مستقبلي ===== */
html[data-royal-shape="futuristic"] #login-screen {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 229, 255, 0.12), transparent 45%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 120, 255, 0.1), transparent 40%),
    linear-gradient(160deg, #070d18 0%, #0d2137 50%, #050a12 100%) !important;
}
html[data-royal-shape="futuristic"] #login-screen .login-box {
  background: linear-gradient(165deg, rgba(14, 26, 46, 0.95) 0%, rgba(8, 16, 32, 0.98) 100%) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-top: 2px solid rgba(0, 229, 255, 0.55) !important;
  border-radius: 24px !important;
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(0, 229, 255, 0.15) !important;
  color: #e2f4ff !important;
}
html[data-royal-shape="futuristic"] #login-screen .login-box h2 {
  color: #00e5ff !important;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.45) !important;
}
html[data-royal-shape="futuristic"] #login-screen .login-box label {
  color: #7a9bb0 !important;
}
html[data-royal-shape="futuristic"] #login-screen .login-box input {
  background: rgba(6, 16, 32, 0.95) !important;
  border: 1.5px solid rgba(0, 180, 220, 0.4) !important;
  color: #e2f4ff !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.05) !important;
}
html[data-royal-shape="futuristic"] #login-screen .login-box input:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2), 0 0 16px rgba(0, 229, 255, 0.15) !important;
}
html[data-royal-shape="futuristic"] #login-screen .login-box input::placeholder {
  color: rgba(226, 244, 255, 0.35) !important;
}
html[data-royal-shape="futuristic"] #login-screen .login-box button[type="submit"],
html[data-royal-shape="futuristic"] #login-screen #login-btn,
html[data-royal-shape="futuristic"] #login-screen .btn-login {
  background: linear-gradient(135deg, #00b8d4, #0088aa) !important;
  color: #070d18 !important;
  border: 1px solid rgba(0, 229, 255, 0.5) !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.3) !important;
  text-shadow: none !important;
}
html[data-royal-shape="futuristic"] #login-screen .login-box button[type="submit"]:hover {
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.5) !important;
}
html[data-royal-shape="futuristic"] #login-screen .toggle-password-btn {
  color: #00e5ff !important;
}
html[data-royal-shape="futuristic"] #login-screen .password-wrapper {
  position: relative;
}

/* زر العين مشترك */
#login-screen .toggle-password-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
