/* =========================================================
   MODERN LOGIN SCREEN STYLES
   شاشة تسجيل الدخول العصرية بتأثيرات الزجاج والمؤثرات الضوئية
   ========================================================= */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #0f172a 100%);
}

/* Dynamic Ambient Glow Orbs in Background */
.login-screen::before,
.login-screen::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.login-screen::before {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #3b82f6, #1d4ed8 60%, transparent 80%);
  top: -100px;
  right: -100px;
}

.login-screen::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, #4338ca 60%, transparent 80%);
  bottom: -120px;
  left: -120px;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Main Login Container Box */
.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  animation: loginCardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginCardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Glassmorphic Card */
.login-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Subtle Shimmer on Top of Card */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: cardShimmer 4s infinite linear;
}

@keyframes cardShimmer {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

/* Brand Icon & Glow */
.login-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
  position: relative;
}

.login-icon-wrapper i {
  font-size: 2.4rem;
  display: inline-block;
  color: #60a5fa;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typography */
.login-card h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.login-card .subtitle {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Features Grid */
.login-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
  text-align: right;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-normal);
}

.feature-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.feature-pill i {
  font-size: 1.1rem;
  color: #60a5fa;
  flex-shrink: 0;
}

.feature-pill span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Custom Modern Google Button */
.custom-google-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1e293b;
  border: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.custom-google-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 255, 255, 0.4);
}

.custom-google-btn:active {
  transform: translateY(0);
}

.google-icon-svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}

/* Quick Demo / Local Entry Option */
.login-alt-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-demo-mode {
  background: transparent;
  color: #94a3b8;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-demo-mode:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.login-security-badge {
  margin-top: 24px;
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-security-badge i {
  color: #10b981;
}

/* Loading State for Google Button */
.custom-google-btn.btn-loading {
  opacity: 0.85;
  pointer-events: none;
  cursor: wait;
}

.custom-google-btn.btn-loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #3b82f6;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinLoader 0.7s linear infinite;
  margin-right: 8px;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}
