/* The Google Fonts <link> in signin.html already loads both families. The @import
   here was a second, duplicate request for the same CSS (and it blocks the first
   paint because @import is serialised behind the stylesheet itself). Removed —
   keep the single <link> as the source. */

:root {
  --bg-right: #F3F5F7;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;
  --primary-gradient: #E85D04;
  --text-main: #12141A;
  --text-muted: #5C6570;
  --border-light: rgba(18, 20, 26, 0.12);
  --accent: #E85D04;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --radius: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-right);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
}

/* 100vh on mobile browsers is the viewport with the URL bar expanded, so the
   bottom of the sign-in panel was unreachable behind it. */
@media (max-width: 968px) {
  body { height: auto; min-height: 100dvh; overflow-y: auto; }
}

.split-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* --- Left Half --- */
.left-half {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 60px;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bg-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(18,20,26,0.55) 0%, rgba(18,20,26,0.72) 100%);
  z-index: 1;
}

.left-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo { color: #fff; }
.logo svg path { fill: currentColor; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #fff;
}

.header-nav {
  display: flex;
  gap: 24px;
}
.header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.header-nav a:hover {
  opacity: 0.8;
}

/* Nav Dropdowns */
.nav-item { position: relative; display: inline-block; padding: 10px 0; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  opacity: 0; visibility: hidden; transition: all 0.2s ease;
  pointer-events: none; z-index: 400; padding-top: 5px;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.nav-card {
  background: #FFFFFF;
  backdrop-filter: none;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  width: 220px;
  box-shadow: 0 10px 30px rgba(18,20,26,0.12);
  display: flex; flex-direction: column; gap: 4px;
}
.nav-card-title { font-weight: 700; color: var(--text-main); font-size: 0.9rem; }
.nav-card-desc { font-size: 0.8rem; color: #a1a1aa; line-height: 1.4; white-space: normal; }

.left-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  max-width: 500px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.headline {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: #fff;
}
.grad-text {
  color: #FFB087;
  background: none;
  -webkit-text-fill-color: currentColor;
  padding-bottom: 0.1em;
}

.subheadline {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 400;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 16px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.feature-text h4 {
  font-size: 14px; font-weight: 600; margin-bottom: 4px; color: #fff;
}
.feature-text p {
  font-size: 13px; color: rgba(255,255,255,0.78);
}

.social-proof {
  display: flex; align-items: center; gap: 16px;
}
.avatars {
  display: flex;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--bg-right);
  background-size: cover; background-position: center;
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.social-text {
  font-size: 13px; color: var(--text-muted); line-height: 1.4;
}
.social-highlight {
  color: white; font-weight: 600;
}

/* --- Right Half --- */
.right-half {
  flex: 0 0 520px;
  background: var(--bg-right);
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 40px;
  position: relative;
  overflow-y: auto;
}

.right-header {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 60px;
}

.btn-nav-outline, .btn-nav-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-nav-outline {
  color: var(--text-main);
  border: 1px solid var(--border-light);
  background: transparent;
}
.btn-nav-outline:hover {
  background: rgba(18,20,26,0.06);
}
.btn-nav-solid {
  background: var(--text-main);
  color: #ffffff;
  border: 1px solid transparent;
}
.btn-nav-solid:hover {
  background: #2a2d36;
}

.right-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  box-shadow: 0 18px 50px rgba(18, 20, 26, 0.08);
}

.panel-header {
  min-height: 82px;
  margin-bottom: 24px;
  text-align: center;
  display: grid;
  align-content: start;
}

.panel-header h2 {
  min-height: 58px;
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  transition: none;
  animation: none;
}

.panel-subtitle {
  margin: 0;
  min-height: 17px;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0.7;
  transition: none;
  animation: none;
}

.btn-oauth {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  margin-bottom: 12px;
}
#btn-google {
  background: #ffffff;
  color: #000000;
}
#btn-github {
  background: #12141A;
  color: #ffffff;
  border: 1px solid rgba(18,20,26,0.12);
}
.btn-oauth:hover {
  opacity: 0.9;
}

.divider {
  display: flex; align-items: center; text-align: center;
  margin: 20px 0; color: var(--text-muted); font-size: 12px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; border-bottom: 1px solid var(--border-light);
}
.divider span { padding: 0 10px; }

.form-group {
  margin-bottom: 16px; position: relative;
}
.form-input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main); font-size: 14px; outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}
.form-input:focus {
  border-color: rgba(232, 93, 4, 0.55);
  outline: 2px solid rgba(232, 93, 4, 0.25);
  outline-offset: 1px;
}
.input-icon {
  position: absolute; left: 14px; top: 40px; color: #6b7280; pointer-events: none;
}
/* Show/hide password toggle. The eye icon in signin.html had cursor:pointer but
   no handler at all — it looked interactive and did nothing. */
.input-action {
  position: absolute; right: 10px; top: 34px;
  background: none; border: none; padding: 6px;
  color: #6b7280; cursor: pointer; border-radius: 6px;
  display: flex; align-items: center;
}
.input-action:hover { color: #C7C7CC; }
.input-action:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

.btn-submit {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius);
  color: #ffffff; font-size: 15px; font-weight: 600; cursor: pointer;
  margin-top: 8px;
  background: var(--accent);
  font-family: var(--font-body);
}
.btn-submit:hover {
  opacity: 0.9;
}

.auth-message {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(18, 20, 26, 0.04);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
}

.auth-message.is-visible {
  display: block;
}

.auth-message--error {
  border-color: rgba(255, 255, 255, 0.24);
}

.notification-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1000;
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.notification {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(18, 20, 26, 0.12);
  color: var(--text-main);
}

.notification.is-hiding {
  opacity: 0;
}

.notification__body {
  flex: 1;
}

.notification__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.notification__text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.notification__close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: rgba(18, 20, 26, 0.04);
  color: var(--text-main);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.legal-page {
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  background: var(--bg-right);
}

.legal-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.legal-back {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.legal-shell h1 {
  margin: 28px 0 8px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.legal-updated {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-shell section {
  padding: 28px 0;
  border-top: 1px solid var(--border-light);
}

.legal-shell h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.legal-shell p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.trusted-footer {
  margin-top: 60px;
  text-align: center;
}
.trusted-footer p {
  font-size: 12px; color: var(--text-muted); margin-bottom: 16px;
}
.trusted-logos {
  display: flex; justify-content: center; gap: 24px; color: var(--text-muted);
  font-size: 13px; font-weight: 600; flex-wrap: wrap;
}
.trusted-logos span {
  display: flex; align-items: center; gap: 6px;
}

@media (max-width: 968px) {
  .split-layout {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
  body { overflow-y: auto; }
  .left-half { padding: 40px 20px; }
  .right-half { flex: none; width: 100%; padding: 40px 20px; }
}

@media (max-width: 768px) {
  .left-half {
    padding: 16px 20px;
    background: #0f1115;
    min-height: auto;
    flex: none;
  }
  .bg-video,
  .bg-overlay,
  .left-content {
    display: none !important;
  }
  .left-header {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .header-nav {
    display: none;
  }
  .right-half {
    padding: 16px 14px 40px;
  }
  .right-header {
    margin-bottom: 16px;
  }
  .glass-panel {
    padding: 22px 16px;
    border-radius: 12px;
  }
  .panel-header {
    min-height: auto;
    margin-bottom: 16px;
  }
  .panel-header h2 {
    min-height: auto;
    font-size: 20px;
  }
  .form-input {
    font-size: 16px;
  }
}

/* Fix Chrome Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #FFFFFF inset !important;
    -webkit-text-fill-color: #12141A !important;
    transition: background-color 5000s ease-in-out 0s;
}
