/* ═══════════════ LOGIN — modern redesign (overrides login.css) ═══════════════ */

/* ─── Hero (left side) ─── */
.login-hero {
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(59, 130, 246, .35), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(139, 92, 246, .32), transparent 60%),
    linear-gradient(160deg, #0b1226 0%, #101a38 50%, #17214a 100%);
  padding: clamp(32px, 6vh, 64px) clamp(32px, 5vw, 64px);
}
.login-hero::before, .login-hero::after { display: none; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: lg-float 14s ease-in-out infinite; }
.hero-orb--1 { width: 360px; height: 360px; top: -90px; right: -60px; background: rgba(59, 130, 246, .45); }
.hero-orb--2 { width: 300px; height: 300px; bottom: -80px; left: -60px; background: rgba(168, 85, 247, .38); animation-delay: -6s; }
@keyframes lg-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, -28px) scale(1.08); } }

.login-hero-inner { max-width: 500px; animation: lg-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.login-hero-logo {
  width: 64px; height: 64px; border-radius: 18px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 14px 34px rgba(0, 0, 0, .35);
}
.login-hero h1 {
  font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.02em; line-height: 1.12; margin-top: 26px;
  background: linear-gradient(90deg, #fff 20%, #bfdbfe 60%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-hero p.tagline { font-size: clamp(13.5px, 1.2vw, 15.5px); color: rgba(226, 232, 240, .78); max-width: 440px; }
.login-hero-features { margin-top: 28px; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.login-hero-feature {
  gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
  transition: transform .2s, background .2s;
}
.login-hero-feature:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.login-hero-feature-icon { width: 28px; height: 28px; border-radius: 50%; font-size: 14px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); border: none; }

/* floating product preview */
.hero-mock { position: relative; margin-top: 38px; height: 190px; max-width: 420px; }
.mock-cal {
  position: absolute; inset: 0 90px 0 0; padding: 0;
  transform: perspective(900px) rotateY(8deg) rotateX(3deg); animation: lg-tilt 7s ease-in-out infinite;
}
@keyframes lg-tilt { 0%, 100% { transform: perspective(900px) rotateY(8deg) rotateX(3deg) translateY(0); } 50% { transform: perspective(900px) rotateY(4deg) rotateX(1deg) translateY(-6px); } }
.mock-cal-top { display: none; }
.mock-cal-top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.mock-cal-top i:nth-child(1) { background: #f87171; } .mock-cal-top i:nth-child(2) { background: #fbbf24; } .mock-cal-top i:nth-child(3) { background: #4ade80; }
.mock-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mock-cal-grid b { box-shadow: 0 6px 14px rgba(0, 0, 0, .28); display: block; aspect-ratio: 1.25; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.mock-cal-grid b.w { background: linear-gradient(135deg, #22c55e, #4ade80); }
.mock-cal-grid b.h { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.mock-cal-grid b.a { background: linear-gradient(135deg, #ef4444, #f87171); }
.mock-cal-grid b.r { background: rgba(148, 163, 184, .28); }
.mock-cal-grid b.t { background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6), 0 0 14px rgba(99, 102, 241, .8); }
@keyframes lg-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

.mock-chip {
  position: absolute; right: 0; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 14px;
  background: #fff; color: #0f172a; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); animation: lg-bob 5s ease-in-out infinite;
}
.mock-chip b { display: block; font-size: 15px; font-weight: 800; font-family: 'JetBrains Mono', monospace; line-height: 1.1; }
.mock-chip small { font-size: 10px; color: #64748b; font-weight: 600; }
.mc-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: #fff; }
.mock-chip--salary { top: 8px; } .mock-chip--salary .mc-ico { background: linear-gradient(135deg, #f59e0b, #f97316); }
.mock-chip--hours { bottom: 8px; right: 36px; animation-delay: -2.5s; } .mock-chip--hours .mc-ico { background: linear-gradient(135deg, #3b82f6, #6366f1); }
@keyframes lg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-height: 720px) { .hero-mock { display: none; } }

/* ─── Form panel (right side) ─── */
.login-form-panel {
  position: relative; overflow-y: auto;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(59, 130, 246, .10), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(139, 92, 246, .09), transparent 60%),
    var(--bg);
}
.login-bg-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .5; animation: lg-float 16s ease-in-out infinite; }
.login-bg-orb--1 { width: 220px; height: 220px; top: 8%; right: 6%; background: rgba(59, 130, 246, .35); }
.login-bg-orb--2 { width: 200px; height: 200px; bottom: 8%; left: 6%; background: rgba(139, 92, 246, .3); animation-delay: -7s; }
.login-lang-corner { position: absolute; top: 18px; inset-inline-end: 20px; z-index: 5; }
.login-lang-corner .lp--login { margin: 0; display: block; }
.login-lang-corner .lp--login .lp-trigger { background: var(--bg2); box-shadow: var(--shadow); }
@media (min-width: 601px) {
  .login-lang-corner .lp--login .lp-menu { inset-inline-start: auto; inset-inline-end: 0; margin: 0; width: 230px; transform-origin: top right; }
  .login-lang-corner .lp--login .lp-menu::before { inset-inline-start: auto; inset-inline-end: 22px; }
}

.login-card {
  position: relative; z-index: 1; max-width: 420px; padding: 44px 36px 30px; border-radius: 28px; overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .05);
  animation: lg-rise .8s cubic-bezier(.2, .8, .2, 1) .1s both;
}
.login-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899); }
@keyframes lg-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.login-logo-wrap { margin-bottom: 28px; }
.login-logo-ring {
  padding: 4px; border-radius: 24px; background: conic-gradient(from 180deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  box-shadow: 0 10px 28px rgba(99, 102, 241, .35); animation: lg-spin-in .9s cubic-bezier(.2, .8, .2, 1) both;
}
.login-logo-wrap img { width: 62px; height: 62px; border-radius: 20px; display: block; border: 3px solid var(--bg2); box-sizing: content-box; padding: 0; }
@keyframes lg-spin-in { from { opacity: 0; transform: scale(.6) rotate(-25deg); } to { opacity: 1; transform: none; } }
.login-title { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin-top: 18px; }
.login-sub { font-size: 13.5px; color: var(--text2); margin-top: 6px; line-height: 1.5; max-width: 270px; }

/* buttons */
.google-btn-wrap { overflow: visible; margin-bottom: 0; }
.btn-google {
  position: relative; padding: 14px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: var(--bg2); border: 1.5px solid var(--border2, var(--border));
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.btn-google:hover { background: var(--bg2); transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 10px 24px rgba(59, 130, 246, .18); }
.btn-google:active { transform: translateY(0) scale(.99); }
.btn-google:focus-visible { outline: 3px solid rgba(59, 130, 246, .4); outline-offset: 2px; }
.google-cta { position: relative; height: 52px; }
.btn-cta {
  height: 100%; border: none; color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1 55%, #8b5cf6);
  box-shadow: 0 10px 24px rgba(99, 102, 241, .38);
}
.btn-cta:hover, .google-cta:hover .btn-cta {
  background: linear-gradient(135deg, #2563eb, #4f46e5 55%, #7c3aed); border: none; transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(99, 102, 241, .5);
}
.google-cta:active .btn-cta { transform: translateY(0) scale(.99); }
.cta-g { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.btn-cta .cta-g svg { width: 16px; height: 16px; border-radius: 0; }
.btn-cta .btn-arrow { margin-inline-start: 2px; transition: transform .2s; }
.btn-cta:hover .btn-arrow, .google-cta:hover .btn-arrow { transform: translateX(4px); }
[dir="rtl"] .btn-cta .btn-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn-cta:hover .btn-arrow, [dir="rtl"] .google-cta:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }

/* Google's real button, invisible, laid over the styled one so the click goes to Google */
.google-overlay { display: none; position: absolute; inset: 0; z-index: 2; opacity: .01; overflow: hidden; border-radius: 14px; min-height: 0 !important; cursor: pointer; }
.google-cta.gsi-ready .google-overlay { display: block; }
.google-overlay > div { width: 100%; transform: scaleY(1.3); transform-origin: top center; }
.google-overlay iframe { max-width: none; }

.google-consent-note { margin-top: 18px; font-size: 11.5px; }
.login-secure {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 10px 14px;
  border-radius: 12px; background: var(--green-light); color: #15803d;
}
.login-secure i { font-size: 16px; flex-shrink: 0; }
.login-secure .login-footer-note { margin: 0; text-align: start; color: inherit; font-size: 11.5px; font-weight: 500; line-height: 1.45; }
body.dark .login-secure { color: #4ade80; }

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .login-form-panel {
    background:
      radial-gradient(500px 360px at 90% 0%, rgba(59, 130, 246, .5), transparent 60%),
      radial-gradient(500px 360px at 0% 100%, rgba(139, 92, 246, .45), transparent 60%),
      linear-gradient(160deg, #0b1226 0%, #17214a 100%);
    padding: 72px 18px 32px; align-items: center;
  }
  .login-bg-orb { opacity: .35; }
  .login-lang-corner .lp--login .lp-trigger { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); box-shadow: none; }
}
@media (max-width: 480px) {
  .login-card { padding: 36px 22px 24px; border-radius: 24px; }
  .login-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-hero *, .login-form-panel *, .login-card, .login-hero-inner { animation: none !important; }
}

/* ─── Flat form side (all screen sizes): no grey/dark panel and no card box behind the form ─── */
.login-form-panel, #screen-login .login-form-panel { background: var(--bg2) !important; }
.login-bg-orb { display: none; }
.login-card { background: transparent; border: none; box-shadow: none; border-radius: 0; overflow: visible; backdrop-filter: none; padding: 20px 8px; }
.login-card::before { display: none; }
@media (max-width: 900px) {
  .login-form-panel { padding: 76px 22px 32px !important; min-height: 100vh; }
  .login-lang-corner .lp--login .lp-trigger { background: var(--bg2); border-color: var(--border); color: var(--text2); box-shadow: var(--shadow); backdrop-filter: none; }
}
