/* Sign-in, register and the other account-access pages. */
.tg-auth-shell{min-height:100svh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem;box-sizing:border-box}
.tg-auth-frame{width:100%;max-width:460px;display:grid;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--bg2);box-shadow:0 30px 90px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.02) inset}
.tg-auth-card{padding:1.6rem 1.5rem 1.5rem;background:linear-gradient(180deg,rgba(255,255,255,.018),transparent 22%),var(--bg2);min-width:0}
.tg-auth-card>.tg-auth-stack{display:flex;flex-direction:column;gap:1rem}
.tg-auth-brand{display:flex;align-items:center;justify-content:center;gap:.45rem;margin-bottom:1.15rem;text-decoration:none}
.tg-auth-logo{font-family:'Bebas Neue',sans-serif;letter-spacing:.08em;font-size:1.8rem;color:var(--text);line-height:1}
.tg-auth-logo em{color:var(--blue);font-style:normal}
.tg-auth-badge{display:inline-flex;align-items:center;gap:.3rem;font-size:.55rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#051018;background:var(--blue);border-radius:4px;padding:.22rem .45rem}
.tg-auth-badge svg{width:9px;height:9px}

/* Heading and switcher */
.tg-auth-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.4rem}
.tg-auth-title{margin:0;font-family:'Bebas Neue',sans-serif;font-size:2.1rem;font-weight:400;letter-spacing:.04em;line-height:1;color:var(--text)}
.tg-auth-title em{color:var(--blue);font-style:normal}
.tg-auth-sub{margin:0;font-size:.84rem;color:var(--muted);line-height:1.6}
.tg-auth-tabs{position:relative;display:grid;grid-template-columns:1fr 1fr;padding:.25rem;border:1px solid var(--line);border-radius:12px;background:var(--bg3)}
.tg-auth-tabs::before{content:'';position:absolute;top:.25rem;bottom:.25rem;left:.25rem;width:calc(50% - .25rem);border-radius:9px;background:rgba(var(--store-accent-rgb,77,184,212),.12);border:1px solid rgba(var(--store-accent-rgb,77,184,212),.3);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.tg-auth-tabs[data-active="register"]::before{transform:translateX(100%)}
.tg-auth-tab{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;min-height:38px;border-radius:9px;text-decoration:none;font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);transition:color .2s}
.tg-auth-tab:hover{color:var(--text)}
.tg-auth-tab.active{color:var(--text)}
.tg-auth-tab:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Icon above the heading on the password recovery pages */
.tg-auth-mark{display:grid;place-items:center;width:52px;height:52px;margin-bottom:.35rem;border-radius:16px;background:rgba(var(--store-accent-rgb,77,184,212),.12);border:1px solid rgba(var(--store-accent-rgb,77,184,212),.3);color:var(--blue);box-shadow:0 10px 30px rgba(var(--store-accent-rgb,77,184,212),.15)}
.tg-auth-mark svg{width:24px;height:24px}
.tg-auth-sub strong{color:var(--text);font-weight:600;overflow-wrap:anywhere}
.tg-back{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;align-self:center;padding:.4rem .7rem;border-radius:8px;font-size:.8rem;font-weight:600;color:var(--muted);text-decoration:none;transition:color .15s,background .15s}
.tg-back svg{width:15px;height:15px;transition:transform .2s}
.tg-back:hover{color:var(--text);background:rgba(255,255,255,.05)}
.tg-back:hover svg{transform:translateX(-3px)}
.tg-back:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Notices */
.tg-notice{display:flex;gap:.65rem;align-items:flex-start;padding:.75rem .85rem;border-radius:12px;font-size:.78rem;line-height:1.55;border:1px solid var(--line2);background:rgba(255,255,255,.03);color:var(--muted)}
.tg-notice svg{width:16px;height:16px;flex:none;margin-top:.1rem}
.tg-notice strong{color:var(--text)}
.tg-notice.is-success{border-color:rgba(63,227,154,.3);background:rgba(63,227,154,.07);color:#b7f2d6}
.tg-notice.is-success svg{color:#5de3a6}
.tg-notice.is-error{border-color:rgba(245,143,159,.35);background:rgba(245,143,159,.08);color:#ffc7d0}
.tg-notice.is-error svg{color:#f58f9f}
.tg-notice.is-info svg{color:var(--blue)}

/* Form */
.tg-form{display:flex;flex-direction:column;gap:.85rem}
.tg-field{display:flex;flex-direction:column;gap:.4rem}
.tg-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:.6rem}
.tg-label{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#aab6cb}
.tg-control{position:relative;display:flex;align-items:center}
.tg-control>.tg-ico{position:absolute;left:.85rem;width:17px;height:17px;color:var(--muted);pointer-events:none;transition:color .18s}
.tg-input{width:100%;min-height:46px;box-sizing:border-box;background:var(--store-panel,#111726);border:1px solid var(--line2);color:var(--text);border-radius:12px;padding:.75rem .95rem .75rem 2.6rem;font-size:.92rem;font-family:'Outfit',sans-serif;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}
.tg-input:hover{border-color:rgba(255,255,255,.22)}
.tg-input:focus{border-color:rgba(var(--store-accent-rgb,77,184,212),.6);box-shadow:0 0 0 4px rgba(var(--store-accent-rgb,77,184,212),.13)}
.tg-control:focus-within>.tg-ico{color:var(--blue)}
.tg-input::placeholder{color:#58647c}
.tg-input[aria-invalid="true"]{border-color:rgba(245,143,159,.6)}
.tg-input[aria-invalid="true"]:focus{box-shadow:0 0 0 4px rgba(245,143,159,.14)}
.tg-input:-webkit-autofill{-webkit-text-fill-color:var(--text);-webkit-box-shadow:0 0 0 40px var(--store-panel,#111726) inset;caret-color:var(--text)}
.tg-control.has-toggle .tg-input{padding-right:3rem}
.tg-pw-toggle{position:absolute;right:.35rem;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;transition:color .15s,background .15s}
.tg-pw-toggle:hover{color:var(--text);background:rgba(255,255,255,.06)}
.tg-pw-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.tg-pw-toggle svg{width:18px;height:18px}
.tg-pw-toggle .tg-eye-off,.tg-pw-toggle[aria-pressed="true"] .tg-eye{display:none}
.tg-pw-toggle[aria-pressed="true"] .tg-eye-off{display:block}
.tg-hint{font-size:.74rem;color:var(--muted);line-height:1.5}
.tg-caps{display:none;align-items:center;gap:.35rem;font-size:.74rem;color:#f5c26b}
.tg-caps.is-on{display:flex}
.tg-error{display:flex;align-items:flex-start;gap:.35rem;font-size:.76rem;line-height:1.45;color:#f58f9f}
.tg-error::before{content:'!';display:grid;place-items:center;width:15px;height:15px;flex:none;margin-top:.05rem;border-radius:50%;background:rgba(245,143,159,.18);font-size:.65rem;font-weight:900}

/* Password strength (register): only shown once the person is on the password field */
.tg-pw-extra{display:none;flex-direction:column;gap:.4rem}
.tg-field:focus-within .tg-pw-extra,.tg-field.has-value .tg-pw-extra,.tg-field.has-error .tg-pw-extra{display:flex}
.tg-meter{display:grid;grid-template-columns:repeat(4,1fr);gap:.3rem}
.tg-meter i{height:4px;border-radius:4px;background:rgba(255,255,255,.08);transition:background .25s}
.tg-meter[data-score="1"] i:nth-child(-n+1){background:#f58f9f}
.tg-meter[data-score="2"] i:nth-child(-n+2){background:#f5c26b}
.tg-meter[data-score="3"] i:nth-child(-n+3){background:#9fd86b}
.tg-meter[data-score="4"] i{background:#3fe39a}
.tg-meter-row{display:flex;justify-content:space-between;gap:.5rem;font-size:.72rem;color:var(--muted)}
.tg-meter-row [data-meter-label]{font-weight:700}
.tg-rules{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:.3rem .8rem}
.tg-rules li{display:flex;align-items:center;gap:.4rem;font-size:.74rem;color:var(--muted);transition:color .2s}
.tg-rules li::before{content:'';width:14px;height:14px;flex:none;border-radius:50%;border:1.5px solid rgba(255,255,255,.2);transition:background .2s,border-color .2s}
.tg-rules li.is-met{color:#b7f2d6}
.tg-rules li.is-met::before{border-color:#3fe39a;background:#3fe39a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23052016' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat}
.tg-match{font-size:.74rem;display:none;align-items:center;gap:.35rem}
.tg-match.is-yes{display:flex;color:#5de3a6}
.tg-match.is-no{display:flex;color:#f5c26b}
@media(max-width:380px){.tg-rules{grid-template-columns:1fr}}

/* Row, links, submit */
.tg-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.tg-check{display:flex;align-items:center;gap:.55rem;font-size:.8rem;color:#c3cde0;cursor:pointer;user-select:none}
.tg-check input{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;flex:none;border:1.5px solid rgba(255,255,255,.25);border-radius:5px;background:var(--store-panel,#111726);display:grid;place-items:center;cursor:pointer;transition:background .15s,border-color .15s}
.tg-check input:checked{background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23051018' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;border-color:var(--blue)}
.tg-check input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.tg-link{font-size:.8rem;font-weight:600;color:var(--blue);text-decoration:none;border-radius:4px}
.tg-link:hover{text-decoration:underline;text-underline-offset:3px}
.tg-link:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.tg-submit{position:relative;display:flex;align-items:center;justify-content:center;gap:.55rem;width:100%;min-height:50px;border:none;border-radius:12px;padding:.85rem 1rem;font-size:.86rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;font-family:'Outfit',sans-serif;color:var(--store-ink,#03141b);background:linear-gradient(180deg,var(--blue2),var(--blue));box-shadow:0 10px 26px rgba(var(--store-accent-rgb,77,184,212),.25),inset 0 1px rgba(255,255,255,.35);cursor:pointer;transition:filter .2s,transform .2s,box-shadow .2s}
.tg-submit:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 14px 32px rgba(var(--store-accent-rgb,77,184,212),.32),inset 0 1px rgba(255,255,255,.35)}
.tg-submit:focus-visible{outline:2px solid #fff;outline-offset:3px}
.tg-submit svg{width:17px;height:17px;transition:transform .2s}
.tg-submit:hover svg{transform:translateX(3px)}
.tg-submit .tg-spin{display:none;width:17px;height:17px;border:2.5px solid rgba(3,20,27,.25);border-top-color:currentColor;border-radius:50%;animation:tg-spin .7s linear infinite}
.tg-submit.is-loading{pointer-events:none;filter:saturate(.7)}
.tg-submit.is-loading .tg-spin{display:block}
.tg-submit.is-loading svg{display:none}
.tg-submit.is-secondary{color:var(--text);background:var(--bg3);border:1px solid var(--line2);box-shadow:none}
.tg-submit.is-secondary:hover{border-color:var(--blue);box-shadow:none}
.tg-submit.is-secondary .tg-spin{border-color:rgba(255,255,255,.2);border-top-color:currentColor}
.tg-submit:disabled{cursor:not-allowed;opacity:.55;transform:none}
@keyframes tg-spin{to{transform:rotate(360deg)}}
.tg-muted{margin:0;font-size:.8rem;color:var(--muted);text-align:center}
.tg-fine{margin:0;font-size:.72rem;color:var(--muted);text-align:center;line-height:1.55}
.tg-fine a{color:#c3cde0;text-decoration:underline;text-underline-offset:2px}
.tg-trust{display:flex;align-items:center;justify-content:center;gap:.45rem;font-size:.72rem;color:var(--muted)}
.tg-trust svg{width:13px;height:13px;color:#5de3a6;flex:none}

/* Social buttons sit in a two-column row when there are two of them. */
.tg-auth-card .tg-social-options{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.tg-auth-card .tg-social-divider{grid-column:1/-1}
.tg-auth-card .tg-social-button{min-height:46px;border-radius:12px}

@media(max-width:520px){
  .tg-auth-shell{padding:1rem .75rem 1.5rem;align-items:flex-start}
  .tg-auth-frame{border-radius:18px}
  .tg-auth-card{padding:1.35rem 1.1rem}
  .tg-auth-title{font-size:1.85rem}
}
@media(prefers-reduced-motion:reduce){.tg-auth-tabs::before,.tg-submit,.tg-submit svg{transition:none}.tg-submit .tg-spin{animation-duration:1.6s}}
