
    :root {
      --bg: #f6f8fb;
      --card-bg: rgba(255, 255, 255, 0.92);
      --border: rgba(148, 163, 184, 0.35);
      --text: #0f172a;
      --muted: #64748b;
      --accent: #0a64d8;
      --accent-strong: #0a58ca;
      --radius: 22px;
      --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
      --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
      --layout-max: 1200px;
      --cta-height: 54px;
      --field-height: 54px;
      --gsi-scale: 1;
    }

    body {
      font-family: "Manrope", "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
      margin: 0;
      background:
        radial-gradient(1200px 600px at 10% -10%, rgba(9, 117, 255, 0.18), rgba(9, 117, 255, 0)),
        radial-gradient(900px 520px at 100% 0%, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0)),
        var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    body.is-product-login{
      --bg: #f8fafc;
      --card-bg: rgba(255,255,255,.86);
    }
    body.product-avanzada{
      --bg: #07111f;
      --text: #eef6ff;
      --muted: #9db3c9;
      --accent: #2dd4bf;
      --accent-strong: #14b8a6;
      --border: rgba(125, 211, 252, .24);
      --card-bg: rgba(7, 17, 31, .72);
      background:
        radial-gradient(900px 520px at 12% 8%, rgba(45,212,191,.22), transparent 62%),
        radial-gradient(820px 520px at 88% 2%, rgba(59,130,246,.20), transparent 58%),
        linear-gradient(135deg, #07111f 0%, #0d1f36 48%, #0e2b31 100%);
    }
    body.product-tulbin{
      --bg: #f7f4ee;
      --text: #232a33;
      --muted: rgba(35,42,51,.62);
      --accent: #232a33;
      --accent-strong: #111827;
      --border: rgba(35,42,51,.12);
      --card-bg: rgba(255,255,255,.78);
      background:
        radial-gradient(780px 480px at 50% -10%, rgba(217,205,189,.56), transparent 68%),
        radial-gradient(640px 430px at 92% 14%, rgba(255,255,255,.82), transparent 66%),
        linear-gradient(135deg, #f7f4ee 0%, #ebe3d7 100%);
    }
    body.product-casa-mousai{
      --bg: #150e0a;
      --text: #fff7ed;
      --muted: #d8c5b2;
      --accent: #c08457;
      --accent-strong: #a9653d;
      --border: rgba(255, 247, 237, .18);
      --card-bg: rgba(39, 24, 16, .74);
      background:
        radial-gradient(760px 460px at 16% 0%, rgba(192,132,87,.30), transparent 62%),
        radial-gradient(680px 420px at 96% 10%, rgba(245,158,11,.16), transparent 60%),
        linear-gradient(135deg, #150e0a 0%, #2b1a12 56%, #160f0b 100%);
    }

    nav {
      width: 100%;
      position: sticky;
      top: 0;
      background: rgba(255, 255, 255, 0.75);
      border-bottom: 1px solid rgba(148, 163, 184, 0.25);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      z-index: 1000;
    }
    body.is-product-login nav{
      background: rgba(255,255,255,.58);
    }
    body.product-avanzada nav,
    body.product-casa-mousai nav{
      background: rgba(3,7,18,.48);
      border-bottom-color: rgba(255,255,255,.10);
    }

    .nav-inner {
      max-width: var(--layout-max);
      margin: 0 auto;
      padding: 12px 18px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav-left{
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      color: var(--text);
      text-decoration: none;
      letter-spacing: -0.02em;
    }
    body.product-avanzada .logo,
    body.product-casa-mousai .logo{
      color: var(--text);
    }

    .logo img {
      height: 40px;
      width: auto;
      display: block;
      border-radius: 12px;
      object-fit: cover;
    }
    body.product-tulbin .logo img{
      width: 46px;
      object-fit: contain;
      border-radius: 14px;
      background: rgba(255,255,255,.68);
    }
    body.product-avanzada .logo img{
      background: rgba(255,255,255,.08);
      box-shadow: 0 14px 30px rgba(45,212,191,.18);
    }
    .nav-back{
      width: 32px;
      height: 32px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(255,255,255,0.85);
      color: var(--text);
      display: grid;
      place-items: center;
      text-decoration: none;
      font-size: 16px;
    }
    body.product-avanzada .nav-back,
    body.product-casa-mousai .nav-back{
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.18);
      color: var(--text);
    }
    .nav-back:hover{
      border-color: #cbd5e1;
    }

    .nav__inner {
      max-width: var(--layout-max);
      margin: 0 auto;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .nav__logo .logo {
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--accent);
      text-decoration: none;
    }

    main {
      flex: 1 1 auto;
      display: flex;
      justify-content: center;
      align-items: stretch;
      padding: 3rem 1.25rem 3.5rem;
    }

    .auth-shell{
      width: 100%;
      max-width: 1100px;
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 2rem;
      align-items: center;
    }
    .auth-hero{
      position: relative;
      padding: 2.4rem 2.2rem;
      border-radius: 28px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      background:
        linear-gradient(135deg, rgba(15, 118, 255, 0.16), rgba(16, 185, 129, 0.12)),
        rgba(255, 255, 255, 0.75);
      box-shadow: 0 40px 80px rgba(15, 23, 42, 0.12);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      overflow: hidden;
      min-height: 520px;
    }
    body.product-avanzada .auth-hero{
      background:
        linear-gradient(135deg, rgba(45,212,191,.16), rgba(59,130,246,.10)),
        rgba(7,17,31,.62);
      border-color: rgba(125,211,252,.20);
      box-shadow: 0 40px 100px rgba(0,0,0,.34);
    }
    body.product-tulbin .auth-hero{
      background:
        radial-gradient(420px 280px at 20% 8%, rgba(255,255,255,.72), transparent 68%),
        linear-gradient(135deg, rgba(255,255,255,.54), rgba(217,205,189,.22)),
        rgba(255,255,255,.42);
      border-color: rgba(35,42,51,.08);
      box-shadow: 0 42px 110px rgba(35,42,51,.10);
    }
    body.product-casa-mousai .auth-hero{
      background:
        linear-gradient(135deg, rgba(192,132,87,.20), rgba(245,158,11,.10)),
        rgba(39,24,16,.62);
      border-color: rgba(255,247,237,.16);
      box-shadow: 0 40px 100px rgba(0,0,0,.34);
    }
    .auth-hero::before{
      content:"";
      position:absolute;
      inset:-20% -10% auto auto;
      width: 320px;
      height: 320px;
      background: radial-gradient(circle at 30% 30%, rgba(14,116,255,.25), rgba(14,116,255,0));
      filter: blur(8px);
      pointer-events: none;
    }
    .hero-badge{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(148, 163, 184, 0.35);
      font-size: 0.85rem;
      color: #1e293b;
      font-weight: 600;
      letter-spacing: -0.01em;
    }
    body.product-avanzada .hero-badge,
    body.product-casa-mousai .hero-badge{
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.16);
      color: var(--text);
    }
    .hero-title{
      margin: 1.2rem 0 0.7rem;
      font-size: 2.2rem;
      line-height: 1.08;
      letter-spacing: -0.03em;
    }
    .hero-copy{
      color: #334155;
      font-size: 1.05rem;
      line-height: 1.6;
      max-width: 480px;
    }
    body.product-avanzada .hero-copy,
    body.product-casa-mousai .hero-copy{
      color: var(--muted);
    }
    .hero-grid{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 1.8rem;
    }
    .hero-pill{
      background: rgba(255, 255, 255, 0.85);
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-radius: 16px;
      padding: 0.95rem 1rem;
      font-size: 0.95rem;
      color: #1f2937;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: var(--shadow-soft);
    }
    body.product-avanzada .hero-pill,
    body.product-casa-mousai .hero-pill{
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.14);
      color: var(--text);
      box-shadow: 0 18px 40px rgba(0,0,0,.22);
    }
    body.product-tulbin .hero-pill{
      background: rgba(255,255,255,.72);
      border-color: rgba(35,42,51,.08);
      color: #232a33;
      box-shadow: 0 18px 42px rgba(35,42,51,.08);
    }
    .hero-stats{
      margin-top: 1.6rem;
      display: flex;
      gap: 1.4rem;
      flex-wrap: wrap;
      color: #0f172a;
      font-weight: 600;
    }
    body.product-avanzada .hero-stats,
    body.product-casa-mousai .hero-stats{
      color: var(--text);
    }
    .hero-stat{
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      min-width: 150px;
    }
    .hero-stat span{
      color: var(--muted);
      font-weight: 500;
      font-size: 0.9rem;
    }

    .login_card {
      width: 100%;
      max-width: 460px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 2.15rem 1.8rem 2.35rem;
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 1.1rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    body.product-avanzada .login_card,
    body.product-casa-mousai .login_card{
      color: var(--text);
      box-shadow: 0 34px 100px rgba(0,0,0,.38);
    }
    body.product-tulbin .login_card{
      box-shadow: 0 34px 100px rgba(35,42,51,.12);
    }
    .login_card::before{
      content:"";
      position:absolute;
      inset: 0;
      background:
        radial-gradient(200px 140px at 100% 0%, rgba(14,116,255,.16), rgba(14,116,255,0)),
        radial-gradient(240px 160px at 0% 100%, rgba(16,185,129,.14), rgba(16,185,129,0));
      pointer-events:none;
      z-index:0;
    }
    body.product-avanzada .login_card::before{
      background:
        radial-gradient(260px 170px at 100% 0%, rgba(45,212,191,.20), transparent 72%),
        radial-gradient(260px 190px at 0% 100%, rgba(59,130,246,.18), transparent 72%);
    }
    body.product-tulbin .login_card::before{
      background:
        radial-gradient(260px 170px at 100% 0%, rgba(217,205,189,.34), transparent 72%),
        radial-gradient(260px 190px at 0% 100%, rgba(255,255,255,.76), transparent 72%);
    }
    body.product-casa-mousai .login_card::before{
      background:
        radial-gradient(260px 170px at 100% 0%, rgba(192,132,87,.24), transparent 72%),
        radial-gradient(260px 190px at 0% 100%, rgba(245,158,11,.16), transparent 72%);
    }
    .login_card > *{
      position: relative;
      z-index: 1;
    }
    @media (max-width: 680px){
      .login_card{
        background:#ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      }
      .login_card::before{
        display:none;
      }
    }

    .login_card h1 {
      font-size: 1.65rem;
      font-weight: 650;
      margin: 0 0 0.35rem 0;
      letter-spacing: -0.02em;
    }
    .login_subtitle{
      margin: -0.25rem 0 0;
      color: var(--muted);
      font-size: 0.98rem;
    }
    body.product-avanzada .login_subtitle,
    body.product-casa-mousai .login_subtitle{
      color: var(--muted);
    }
    .session-hint {
      background: #eef6ff;
      border: 1px solid #d6e8ff;
      color: #1d4ed8;
      border-radius: 0.75rem;
      padding: 0.75rem 1rem;
      font-size: 0.95rem;
      line-height: 1.4;
      width: 100%;
      box-sizing: border-box;
    }
    #loginForm {
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
      width: 100%;
    }
    .auth-panel{
      display:none;
      flex-direction:column;
      gap:0.9rem;
      width:100%;
    }
    .auth-panel.auth-panel--active{
      display:flex;
    }
    .mfa-copy{
      display:flex;
      flex-direction:column;
      gap:0.35rem;
      text-align:left;
    }
    .mfa-kicker{
      margin:0;
      font-size:.82rem;
      font-weight:700;
      letter-spacing:.08em;
      text-transform:uppercase;
      color:var(--accent);
    }
    .mfa-body{
      margin:0;
      color:var(--muted);
      font-size:.95rem;
      line-height:1.45;
    }
    .mfa-qr{
      display:flex;
      align-items:center;
      justify-content:center;
      min-height:220px;
      padding:1rem;
      border:1px solid rgba(148,163,184,.28);
      border-radius:1rem;
      background:rgba(255,255,255,.78);
      box-sizing:border-box;
    }
    .mfa-qr svg{
      width:100%;
      max-width:190px;
      height:auto;
      display:block;
    }
    .mfa-secret-box{
      display:flex;
      flex-direction:column;
      gap:0.35rem;
      text-align:left;
      padding:0.9rem 1rem;
      border:1px dashed rgba(148,163,184,.45);
      border-radius:1rem;
      background:rgba(248,250,252,.88);
    }
    .mfa-secret-box span{
      font-size:.82rem;
      font-weight:700;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.06em;
    }
    .mfa-secret-box code{
      font-size:.95rem;
      word-break:break-all;
      color:var(--text);
    }
    .mfa-link-btn{
      width:100%;
      min-height:auto;
      padding:0;
      background:transparent !important;
      color:var(--accent) !important;
      box-shadow:none !important;
      border:none;
      font-size:.92rem;
      font-weight:600;
      cursor:pointer;
    }
    .mfa-link-btn:hover{
      text-decoration:underline;
      transform:none;
    }
    .mfa-recovery-list{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:0.65rem;
    }
    .mfa-recovery-item{
      padding:0.75rem 0.85rem;
      border-radius:0.9rem;
      background:rgba(248,250,252,.92);
      border:1px solid rgba(148,163,184,.28);
      font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size:.9rem;
      text-align:center;
      color:var(--text);
    }
    body.product-avanzada .mfa-qr,
    body.product-casa-mousai .mfa-qr,
    body.product-avanzada .mfa-secret-box,
    body.product-casa-mousai .mfa-secret-box,
    body.product-avanzada .mfa-recovery-item,
    body.product-casa-mousai .mfa-recovery-item{
      background:rgba(255,255,255,.08);
      border-color:rgba(255,255,255,.18);
      color:var(--text);
    }
    body.product-avanzada .mfa-secret-box code,
    body.product-casa-mousai .mfa-secret-box code{
      color:var(--text);
    }

    .login_card input {
      padding: 0 1rem;
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-radius: 0.9rem;
      font-size: 1rem;
      min-height: var(--field-height);
      background: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      width: 100%;
      box-sizing: border-box;
    }
    body.product-avanzada .login_card input,
    body.product-casa-mousai .login_card input{
      background: rgba(255,255,255,.10);
      border-color: rgba(255,255,255,.18);
      color: var(--text);
    }
    body.product-avanzada .login_card input::placeholder,
    body.product-casa-mousai .login_card input::placeholder{
      color: rgba(238,246,255,.58);
    }

    .login_card input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(10, 100, 216, 0.18);
      outline: none;
    }

    .login_card button {
      background: var(--accent);
      color: white;
      border: none;
      border-radius: 0.9rem;
      padding: 0 1.6rem;
      min-height: var(--cta-height);
      font-size: 1.05rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
      width: 100%;
      box-shadow: 0 12px 24px rgba(10, 100, 216, 0.25);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      letter-spacing: -0.01em;
    }
    body.product-avanzada .login_card button{
      color: #04201d;
      box-shadow: 0 18px 42px rgba(45,212,191,.22);
    }
    body.product-tulbin .login_card button{
      box-shadow: 0 18px 40px rgba(35,42,51,.18);
    }
    body.product-casa-mousai .login_card button{
      color: #fff7ed;
      box-shadow: 0 18px 42px rgba(192,132,87,.20);
    }

    .login_card button:hover {
      background: var(--accent-strong);
    }
    .login_card button:active {
      transform: translateY(1px);
      box-shadow: 0 8px 16px rgba(10, 100, 216, 0.2);
    }

    /* =========================
       Apple-like Spinner (login)
       ========================= */
    .ds-action{
      position: relative;
      overflow: hidden;
      -webkit-tap-highlight-color: transparent;
    }
    .ds-action::after{
      content:"";
      position:absolute;
      inset:-1px;
      pointer-events:none;
      background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.4) 45%, transparent 70%);
      opacity:0;
      transform: translateX(-120%) skewX(-18deg);
    }
    .ds-action.is-pressing{
      animation: ds-premium-pop .42s cubic-bezier(.22,1,.36,1);
    }
    .ds-action.is-pressing::after{
      animation: ds-premium-sheen .48s cubic-bezier(.22,1,.36,1);
    }
    .ds-action.is-loading{
      pointer-events: none;
      opacity: .88;
    }
    .ds-action .btn-label{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      transition: opacity .2s ease, transform .2s ease;
    }
    .ds-action.is-loading .btn-label{
      opacity: 0;
      transform: translateY(3px);
    }
    .ds-action .btn-spinner{
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: scale(.88);
      transition: opacity .2s ease, transform .2s ease;
    }
    .ds-action.is-loading .btn-spinner{
      opacity: 1;
      transform: scale(1);
    }
    .apple-spinner{
      width: 18px;
      height: 18px;
      border-radius: 999px;
      border: 2px solid rgba(255,255,255,.35);
      border-top-color: #fff;
      animation: apple-spin .7s linear infinite;
    }
    .google-custom .apple-spinner{
      border: 2px solid rgba(15,23,42,.22);
      border-top-color: var(--accent);
    }
    @keyframes apple-spin{ to { transform: rotate(360deg); } }
    @keyframes ds-premium-pop{
      0%{ transform: translateY(0) scale(1); }
      38%{ transform: translateY(-0.5px) scale(.972); }
      100%{ transform: translateY(0) scale(1); }
    }
    @keyframes ds-premium-sheen{
      0%{ opacity:0; transform: translateX(-120%) skewX(-18deg); }
      24%{ opacity:.3; }
      100%{ opacity:0; transform: translateX(130%) skewX(-18deg); }
    }

    @media (min-width: 768px) {
      main {
        padding: 3.5rem 2rem 4rem;
        align-items: center;
      }

      .login_card {
        max-width: 520px;
        padding: 3.1rem 2.8rem 3.2rem;
        gap: 1.35rem;
      }

      .login_card h1 {
        font-size: 2.1rem;
      }

      .login_card input {
        font-size: 1.1rem;
        min-height: 60px;
      }

      .login_card button {
        font-size: 1.15rem;
        min-height: 60px;
      }
    }
    @media (max-width: 900px) {
      .auth-shell{
        grid-template-columns: 1fr;
      }
      .auth-hero{
        min-height: unset;
      }
    }
    @media (max-width: 720px) {
      .auth-hero{
        display:none;
      }
      main{
        padding:1.5rem 1rem 2rem;
        align-items:flex-start;
        width:100%;
        box-sizing:border-box;
      }
      .auth-shell{
        grid-template-columns:1fr;
        gap:0;
        max-width:100%;
        width:100%;
        margin:0 auto;
        padding:0;
        box-sizing:border-box;
      }
      .login_card{
        max-width:100%;
        width:100%;
        padding:1.8rem 1.4rem 2rem;
        border-radius:20px;
        box-shadow:0 20px 50px rgba(15,23,42,.14);
        box-sizing:border-box;
      }
      .mfa-recovery-list{
        grid-template-columns:1fr;
      }
    }

    .oauth-btn, #appleid-signin {
      width: 100%;
      border-radius: 0.9rem;
      font-size: 1rem;
      padding: 0.95rem;
      text-align: center;
      cursor: pointer;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: var(--shadow-soft);
      box-sizing: border-box;
    }

    @media (min-width: 768px) {
      .oauth-btn, #appleid-signin {
        font-size: 1.05rem;
        padding: 1rem;
      }
    }

    .oauth-btn:hover, #appleid-signin:hover {
      background: #f5f7fb;
      transform: translateY(-1px);
    }

    .oauth-buttons {
      margin-top: 0.6rem;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
      gap: 0.8rem;
    }
    .oauth-buttons > :not(#googleCustomBtn):not(#googleFallback){
      display:none !important;
    }
    .oauth-buttons .g_id_signin,
    .g_id_signin{
      display:none !important;
      width:0 !important;
      height:0 !important;
      overflow:hidden !important;
      opacity:0 !important;
      visibility:hidden !important;
      pointer-events:none !important;
    }
    .oauth-fallback{
      display:none;
      margin-top:10px;
      font-size:.86rem;
      color:#b91c1c;
      text-align:center;
    }
    .google-custom{
      display:inline-flex;
      position: relative;
      align-items:center;
      justify-content:center;
      gap:10px;
      width:100%;
      height:var(--cta-height);
      border-radius:0.9rem;
      border:1px solid rgba(148,163,184,0.35);
      background:#ffffff;
      box-shadow: var(--shadow-soft);
      font-weight:600;
      color:#0f172a;
      cursor:pointer;
      transition:transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    body.product-avanzada .google-custom,
    body.product-casa-mousai .google-custom{
      background: rgba(255,255,255,.10);
      border-color: rgba(255,255,255,.18);
      color: var(--text);
    }
    .google-custom:hover{
      transform:translateY(-1px);
      box-shadow:0 14px 28px rgba(15,23,42,0.14);
      background:#f5f7fb;
    }
    .google-custom img{
      width:18px;
      height:18px;
    }
    .google-loading-dots{
      display:inline-block;
      width:0;
      overflow:hidden;
      white-space:nowrap;
      vertical-align:baseline;
      margin-left:1px;
    }
    .google-custom.is-pending .google-loading-dots{
      width:1.25em;
      animation: google-dots 1.1s steps(4, end) infinite;
    }
    .google-custom:not(.is-pending) .google-loading-dots{
      display:none;
      animation:none;
    }
    @keyframes google-dots{
      0%{ width:0; }
      100%{ width:1.25em; }
    }
    #googleCustomBtn{
      display:inline-flex;
    }
    .google-custom.is-pending{
      opacity:.9;
      cursor:progress;
    }
    .google-custom.is-pending .google-native-overlay{
      pointer-events:none;
    }
    .google-native-overlay{
      position:absolute;
      inset:0;
      z-index:2;
      opacity:0.01;
      border-radius:0.9rem;
      overflow:hidden;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .google-native-overlay > div,
    .google-native-overlay iframe{
      width:100% !important;
      min-width:100% !important;
    }
    .oauth-retry{
      margin-left:10px;
      border:1px solid rgba(148,163,184,.45);
      background:rgba(248,250,252,.9);
      color:#0f172a;
      border-radius:999px;
      padding:4px 10px;
      font-size:.82rem;
      cursor:pointer;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:6px;
    }
    .oauth-divider{
      margin: 0.35rem 0 0.15rem;
      text-align: center;
      font-size: 0.95rem;
      color: var(--muted);
    }
    body.product-avanzada .login_card .links a,
    body.product-casa-mousai .login_card .links a{
      color: var(--accent);
    }


    #appleid-signin {
      overflow: hidden;
      height: var(--cta-height);
    }

    #appleid-signin > div {
      transform: scale(0.85);
      transform-origin: center;
    }

    .login_card .links {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      font-size: 0.9rem;
      width: 100%;
    }

    .login_card .links a {
      text-decoration: none;
      color: var(--accent);
    }

    .login_card .links a:hover {
      text-decoration: underline;
    }

    .ds-modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(15, 23, 42, 0.35);
      backdrop-filter: blur(8px);
      z-index: 2000;
    }
    .ds-modal.is-open {
      display: flex;
    }
    .ds-modal.is-open .ds-modal__card{
      animation: modal-in .28s cubic-bezier(.22,1,.36,1) both;
    }
    .ds-modal.is-closing .ds-modal__card{
      animation: modal-out .2s ease both;
    }
    .ds-modal__card {
      width: min(460px, calc(100vw - 24px));
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-radius: 22px;
      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
      padding: 22px;
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }
    .ds-modal__card::before{
      content:"";
      position:absolute;
      inset: 0;
      background:
        radial-gradient(200px 140px at 100% 0%, rgba(14,116,255,.16), rgba(14,116,255,0)),
        radial-gradient(240px 160px at 0% 100%, rgba(16,185,129,.14), rgba(16,185,129,0));
      pointer-events:none;
      z-index:0;
    }
    .ds-modal__card > *{
      position: relative;
      z-index: 1;
    }
    .ds-modal__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .ds-iconbtn {
      width: 36px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      background: rgba(255, 255, 255, 0.85);
      cursor: pointer;
    }
    .ds-modal h3{
      margin: 0;
      font-size: 1.2rem;
      letter-spacing: -0.02em;
    }
    .ds-muted {
      color: rgba(100, 116, 139, 0.95);
      margin: 8px 0 12px;
      font-size: 0.95rem;
    }
    .ds-modal input{
      padding: 0 1rem;
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-radius: 0.9rem;
      font-size: 1rem;
      min-height: var(--field-height);
      background: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      width: 100%;
      box-sizing: border-box;
    }
    .ds-modal input:focus{
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(10, 100, 216, 0.18);
      outline: none;
    }
    .ds-modal__actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 14px;
    }
    .ds-modal__actions .btn{
      border: none;
      border-radius: 0.9rem;
      padding: 0 1.2rem;
      min-height: var(--cta-height);
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
    .ds-modal__actions .btn-primary{
      background: var(--accent);
      color: #fff;
      box-shadow: 0 12px 24px rgba(10, 100, 216, 0.25);
    }
    .ds-modal__actions .btn-primary:hover{
      background: var(--accent-strong);
    }
    .ds-modal__actions .btn-ghost{
      background: rgba(248,250,252,.9);
      color: var(--text);
      border: 1px solid rgba(148, 163, 184, 0.35);
    }
    .ds-error {
      margin-top: 10px;
      color: #b91c1c;
      font-weight: 700;
      font-size: 0.9rem;
      display: none;
    }
    #forgotPasswordError:not(:empty) {
      display: block;
      color: var(--muted);
    }

    @keyframes modal-in{
      from{ opacity:0; transform: translateY(8px) scale(.98); }
      to{ opacity:1; transform: translateY(0) scale(1); }
    }
    @keyframes modal-out{
      from{ opacity:1; transform: translateY(0) scale(1); }
      to{ opacity:0; transform: translateY(6px) scale(.98); }
    }
  

    html, body{
      width:100%;
      overflow-x:hidden;
    }
    body{
      touch-action: pan-y;
    }
    img, iframe{
      max-width:100%;
    }
    nav, .nav-inner, .nav-left{
      max-width:100%;
      width:100%;
      box-sizing:border-box;
    }

    /* === CINEMATIC REVEAL (Apple-like) === */
    .cinematic{opacity:0;transform:translateY(18px) scale(0.985);filter:blur(6px);transition:opacity .8s cubic-bezier(.22,1,.36,1),transform .8s cubic-bezier(.22,1,.36,1),filter .8s cubic-bezier(.22,1,.36,1);transition-delay:var(--delay,0ms);will-change:transform,opacity,filter}
    .cinematic.cinematic-visible{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
    .cinematic-hover{transition:transform .35s ease,box-shadow .35s ease}
    .cinematic-hover:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(15,23,42,.12)}
    @media (prefers-reduced-motion:reduce){.cinematic{opacity:1;transform:none;filter:none;transition:none}.cinematic-hover{transition:none}.cinematic-hover:hover{transform:none;box-shadow:none}}
