    :root {
      --bg: #0f1319;
      --panel-a: #11161d;
      --panel-b: #181e27;
      --panel-c: #151a22;
      --text: rgba(255,255,255,0.96);
      --muted: rgba(255,255,255,0.58);
      --soft: rgba(255,255,255,0.10);
      --soft-2: rgba(255,255,255,0.05);
      --button: #f5f3ee;
      --button-text: #151515;
      --accent: rgba(194, 124, 73, 0.32);
      --shadow: 0 30px 80px rgba(0,0,0,0.28);
    }

    

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html,
    body {
      min-height: 100%;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    .page {
      width: 100%;
      min-height: 100vh;
    }

    .login-shell {
      position: relative;
      min-height: 100vh;
      overflow: hidden;
      background:
        radial-gradient(circle at 56% 24%, rgba(219, 170, 105, 0.12), transparent 18%),
        radial-gradient(circle at 73% 42%, rgba(255,255,255,0.05), transparent 14%),
        radial-gradient(circle at 28% 78%, rgba(84, 111, 194, 0.07), transparent 24%),
        linear-gradient(112deg, var(--panel-a) 0%, var(--panel-b) 38%, var(--panel-c) 72%, #12171e 100%);
      box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        inset 0 26px 90px rgba(255,255,255,0.02),
        inset 0 -60px 120px rgba(0,0,0,0.22);
    }

    .login-shell::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at center, transparent 42%, rgba(0,0,0,0.16) 100%),
        linear-gradient(90deg, rgba(255,255,255,0.02), transparent 15%, transparent 85%, rgba(255,255,255,0.018));
      pointer-events: none;
    }

    .login-shell::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 24%, transparent 76%, rgba(0,0,0,0.18));
      pointer-events: none;
    }

    .rope {
      position: absolute;
      width: 2px;
      border-radius: 999px;
      background: linear-gradient(to bottom, rgba(255,255,255,0.72), rgba(255,255,255,0.08));
      opacity: 0.54;
      z-index: 12;
      pointer-events: none;
    }

    .rope.one {
      top: -8px;
      right: 370px;
      height: 260px;
      transform: rotate(15deg);
    }

    .rope.two {
      top: 155px;
      right: 54px;
      height: 440px;
      transform: rotate(56deg);
    }

    .hook {
      position: absolute;
      right: -12px;
      bottom: 88px;
      width: 88px;
      height: 18px;
      border-radius: 999px;
      background: #2a2f35;
      transform: rotate(48deg);
      z-index: 12;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
      pointer-events: none;
    }

    .content {
      position: relative;
      z-index: 2;
      min-height: 100vh;
      display: grid;
      grid-template-columns: 0.95fr 1.05fr;
      gap: 8px;
      padding: 42px 56px 40px 62px;
    }

    .left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-right: 10px;
      max-width: 560px;
    }

    .back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,0.56);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-decoration: none;
      width: fit-content;
      margin-bottom: 64px;
    }

    .back .icon {
      font-size: 18px;
      line-height: 1;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 34px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: 0.12em;
      transform: scaleY(0.92);
      margin-bottom: 26px;
      flex-wrap: wrap;
    }

    .brand span {
      display: inline-block;
    }

    .hero-title {
      font-size: 34px;
      line-height: 1.05;
      letter-spacing: -0.035em;
      font-weight: 800;
    }

    .hero-subtitle {
      margin-top: 10px;
      color: rgba(255,255,255,0.68);
      font-size: 18px;
      font-weight: 500;
    }

    .user-row {
      margin-top: 42px;
      display: flex;
      align-items: center;
      gap: 12px;
      color: rgba(255,255,255,0.62);
      font-size: 16px;
      flex-wrap: wrap;
    }

    .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background:
        url('https://images.unsplash.com/photo-1542909168-82c3e7fdca5c?auto=format&fit=crop&w=700&q=100') center/cover,
        #333;
      box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 10px 22px rgba(0,0,0,0.24);
      flex: 0 0 auto;
    }

    .username {
      color: rgba(255,255,255,0.90);
      font-size: 16px;
      font-weight: 600;
    }

    .login-form {
      margin-top: 24px;
      width: min(100%, 500px);
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .input-wrap {
      position: relative;
      height: 62px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.11);
      background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.014));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 0 18px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .input-wrap:focus-within {
      border-color: rgba(255,255,255,0.18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 4px rgba(255,255,255,0.025);
      background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    }

    .input-icon,
    .toggle-password {
      width: 18px;
      height: 18px;
      color: rgba(255,255,255,0.42);
      flex: 0 0 auto;
    }

    .toggle-password {
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .toggle-password:hover {
      color: rgba(255,255,255,0.72);
    }

    .login-input {
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
      background: transparent;
      color: rgba(255,255,255,0.84);
      font-size: 16px;
      font-weight: 500;
      font-family: inherit;
    }

    .login-input::placeholder {
      color: rgba(255,255,255,0.4);
    }

    .forgot-password {
      margin-top: 2px;
      text-align: right;
    }

    .forgot-password a {
      color: rgba(255,255,255,0.62);
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      transition: color 0.2s ease;
    }

    .forgot-password a:hover {
      color: rgba(255,255,255,0.9);
    }

    .divider {
      width: min(100%, 500px);
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 26px 0 18px;
      color: rgba(255,255,255,0.44);
    }

    .divider::before,
    .divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: rgba(255,255,255,0.08);
    }

    .divider-text {
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }

    .divider-line {
    width: min(100%, 500px);
    height: 1px;
    background-color: rgba(255,255,255,0.08);
    margin: 26px 0 18px;
    border: none; /* Ensures no default styling if using <hr> */
    }

    .social-group {
      width: min(100%, 500px);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .btn-social {
      height: 56px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018));
      color: rgba(255,255,255,0.9);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .btn-social:hover {
      transform: translateY(-1px);
      border-color: rgba(255,255,255,0.18);
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    }

    .btn-social svg,
    .btn-social img {
      width: 18px;
      height: 18px;
      object-fit: contain;
      flex: 0 0 auto;
    }

    .signup-text {
      width: min(100%, 500px);
      margin-top: 18px;
      color: rgba(255,255,255,0.6);
      font-size: 14px;
      font-weight: 500;
    }

    .signup-text a {
      color: rgba(255,255,255,0.92);
      text-decoration: none;
      font-weight: 700;
    }

    .helper-text {
      margin-top: 26px;
      width: min(100%, 500px);
      color: rgba(255,255,255,0.48);
      font-size: 16px;
      line-height: 1.5;
      font-weight: 500;
    }

    .actions {
      margin-top: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .switch-user {
      color: rgba(255,255,255,0.84);
      text-decoration: none;
      font-size: 18px;
      font-weight: 600;
    }

    .vertical-line {
      width: 2px;
      height: 26px;
      border-radius: 999px;
      background: rgba(255,255,255,0.16);
    }

    .continue-btn {
      border: none;
      border-radius: 16px;
      height: 56px;
      width: 500px;
      padding: 0 34px;
      background: var(--button);
      color: var(--button-text);
      font-size: 16px;
      font-weight: 800;
      letter-spacing: 0.02em;
      cursor: pointer;
      box-shadow: 0 16px 28px rgba(0,0,0,0.18);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .continue-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 32px rgba(0,0,0,0.22);
    }

    .right {
      position: relative;
      min-height: 100%;
      overflow: hidden;
    }

    .shape-outline {
      position: absolute;
      left: 50px;
      top: 100px;
      rotate: 8deg;
      width: 320px;
      height: 725px;
      border: 2px solid var(--accent);
      transform: skewY(-8deg);
      z-index: 2;
      pointer-events: none;
    }

    .toggle-password {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.42);
  flex: 0 0 auto;
  cursor: pointer;
  transition: color 0.2s ease;
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-password svg {
  width: 18px;
  height: 18px;
}

.toggle-password:hover {
  color: rgba(255,255,255,0.72);
}

.toggle-password:focus {
  outline: none;
  box-shadow: none;
}

    .hero-card {
      position: absolute;
      left: -200px;
      top: 68px;
      width: 1000px;
      height: 700px;
      overflow: hidden;
      z-index: 3;
    }

    .hero-card img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      animation-duration: 50s;
      animation-iteration-count: infinite;
      animation-timing-function: linear;
    }

    .hero-card img:nth-child(1) { animation-name: img1; }
    .hero-card img:nth-child(2) { animation-name: img2; }
    .hero-card img:nth-child(3) { animation-name: img3; }
    .hero-card img:nth-child(4) { animation-name: img4; }
    .hero-card img:nth-child(5) { animation-name: img5; }

    @keyframes img1 {
      0%, 18% { opacity: 1; }
      20%, 100% { opacity: 0; }
    }

    @keyframes img2 {
      0%, 20% { opacity: 0; }
      22%, 38% { opacity: 1; }
      40%, 100% { opacity: 0; }
    }

    @keyframes img3 {
      0%, 40% { opacity: 0; }
      42%, 58% { opacity: 1; }
      60%, 100% { opacity: 0; }
    }

    @keyframes img4 {
      0%, 60% { opacity: 0; }
      62%, 78% { opacity: 1; }
      80%, 100% { opacity: 0; }
    }

    @keyframes img5 {
      0%, 80% { opacity: 0; }
      82%, 100% { opacity: 1; }
    }

    .floor-glow {
      position: absolute;
      left: 255px;
      bottom: 142px;
      width: 250px;
      height: 50px;
      background: radial-gradient(ellipse at center, rgba(232,138,56,0.40), rgba(232,138,56,0.08) 35%, transparent 70%);
      filter: blur(18px);
      transform: rotate(-8deg);
      z-index: 2;
      pointer-events: none;
    }

    .chat {
      position: absolute;
      border-radius: 16px;
      padding: 12px 14px 11px;
      background: linear-gradient(180deg, rgba(122,112,104,0.72), rgba(82,76,72,0.72));
      box-shadow: 0 20px 50px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
      backdrop-filter: blur(12px);
      color: rgba(255,255,255,0.9);
      z-index: 8;
    }

    .chat.top {
      top: 320px;
      right: 10px;
      min-width: 300px;
      max-width: 320px;
    }

    .chat.bottom {
      top: 428px;
      right: 0;
      min-width: 340px;
      max-width: 360px;
      background: linear-gradient(180deg, rgba(112,108,107,0.64), rgba(73,69,68,0.64));
    }

    .chat-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 8px;
    }

    .chat-main {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .mini-avatar, .mini-avatar2,
    .mini-logo {
      width: 26px;
      height: 26px;
      border-radius: 10px;
      flex: 0 0 auto;
      overflow: hidden;
    }

    
    input,
textarea,
select {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

/* Chrome / Edge / Safari autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #11161d00 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0) !important;
  border-radius: inherit;
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

    .mini-avatar {
      background: url('https://i.pinimg.com/236x/59/b1/07/59b107399b3b738f8b2df74efd692684.jpg') center/cover;
    }

    .mini-avatar2 {
      background: url('/assets/img/logos/urs-logo.png') center/cover;
    }

    .mini-logo {
      display: grid;
      place-items: center;
      background: rgba(255,255,255,0.14);
      font-weight: 800;
      color: rgba(255,255,255,0.9);
    }

    .chat-name-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .chat-name {
      font-size: 12px;
      font-weight: 700;
    }

    .check {
      color: rgba(255,255,255,0.8);
      font-size: 16px;
    }

    .badge {
      font-size: 8px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 3px 6px;
      border-radius: 999px;
      background: rgba(255,255,255,0.16);
    }

    .chat-time {
      color: rgba(255,255,255,0.5);
      font-size: 10px;
      font-weight: 600;
      white-space: nowrap;
    }

    .chat-body {
      padding-left: 38px;
      color: rgba(255,255,255,0.78);
      font-size: 11px;
      line-height: 1.34;
      font-weight: 500;
    }

    .pager {
      position: absolute;
      right: 300px;
      bottom: 6px;
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 8;
    }

    .pager span {
      position: relative;
      width: 40px;
      height: 4px;
      border-radius: 10px;
      background: rgba(255,255,255,0.1);
      overflow: hidden;
    }

    .pager span::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      background: #fff;
      animation-duration: 50s, 50s;
      animation-iteration-count: infinite, infinite;
      animation-timing-function: linear, linear;
    }

    .pager span:nth-child(1)::before { animation-name: bar1, globalFade; }
    .pager span:nth-child(2)::before { animation-name: bar2, globalFade; }
    .pager span:nth-child(3)::before { animation-name: bar3, globalFade; }
    .pager span:nth-child(4)::before { animation-name: bar4, globalFade; }
    .pager span:nth-child(5)::before { animation-name: bar5, globalFade; }

    @keyframes globalFade {
      0%, 99% { opacity: 1; }
      100% { opacity: 0; }
    }

    @keyframes bar1 {
      0% { width: 0%; }
      20%, 100% { width: 100%; }
    }

    @keyframes bar2 {
      0%, 20% { width: 0%; }
      40%, 100% { width: 100%; }
    }

    @keyframes bar3 {
      0%, 40% { width: 0%; }
      60%, 100% { width: 100%; }
    }

    @keyframes bar4 {
      0%, 60% { width: 0%; }
      80%, 100% { width: 100%; }
    }

    @keyframes bar5 {
      0%, 80% { width: 0%; }
      100% { width: 100%; }
    }

    .hidden-label {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 1250px) {
  .content {
    display: grid;
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .left {
    width: 100%;
    max-width: 100%;
  }

  .right {
    display: none !important;
  }

  .brand {
    font-size: 34px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle,
  .user-row,
  .username,
  .helper-text {
    font-size: 18px;
  }

  .login-form,
  .divider,
  .social-group,
  .signup-text,
  .helper-text,
  .continue-btn {
    width: 100%;
    max-width: 100%;
  }

  .input-wrap {
    height: 72px;
  }

  .login-input,
  .switch-user {
    font-size: 20px;
  }

  .continue-btn {
    height: 62px;
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .content {
    padding: 28px 22px 34px;
  }

  .back {
    margin-bottom: 56px;
  }

  .brand {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .user-row {
    margin-top: 42px;
    gap: 12px;
    font-size: 16px;
    flex-wrap: wrap;
  }

  .avatar {
    width: 40px;
    height: 40px;
  }

  .username {
    font-size: 16px;
  }

  .input-wrap {
    height: 64px;
    padding: 0 18px;
  }

  .login-input {
    font-size: 16px;
  }

  .helper-text {
    font-size: 15px;
    margin-top: 20px;
    line-height: 1.5;
  }

  .actions {
    margin-top: 36px;
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .switch-user {
    font-size: 16px;
    text-align: center;
  }

  .vertical-line {
    display: none !important;
  }

  .continue-btn {
    width: 100%;
  }

  .social-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.hidden {
  display: none !important;
}
.reset-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 10, 14, 0.72);
  backdrop-filter: blur(10px);
}

.reset-box {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(24,30,39,0.96), rgba(17,22,29,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.reset-title {
  font-size: 24px;
  font-weight: 800;
  color: rgba(255,255,255,0.96);
  margin-bottom: 8px;
}

.reset-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
  margin-bottom: 18px;
}

.reset-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reset-field label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
}

.reset-input {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 0 16px;
  outline: none;
  color: white;
  font-size: 15px;
  font-family: inherit;
}

.reset-input:focus {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.03);
}

#resetTimer {
  min-height: 20px;
  margin-top: 12px;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  font-weight: 600;
}

.reset-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.reset-send-btn,
.reset-cancel-btn {
  flex: 1;
  height: 52px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.reset-send-btn {
  background: var(--button);
  color: var(--button-text);
}

.reset-cancel-btn {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.08);
}

.reset-send-btn:hover,
.reset-cancel-btn:hover {
  transform: translateY(-1px);
}

.reset-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.reset-message,
#resetTimer {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.reset-message {
  color: rgba(255,255,255,0.62);
}

.reset-message.success {
  color: #86efac;
}

.reset-message.error {
  color: #fca5a5;
}

#resetTimer {
  color: rgba(255,255,255,0.58);
}
