@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --panel-raised: #eef1f4;
  --accent: #4a7fb5;
  --accent-dim: #3a6690;
  --steel: #6b8caa;
  --text: #1c1f22;
  --text-muted: #6b7280;
  --danger: #c1440e;
  --border: #e2e5e9;
  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* accent top strip */
.hazard-strip {
  height: 3px;
  width: 100%;
  background: var(--accent);
}

.auth-shell {
  width: 100%;
  max-width: 920px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 340px 1fr;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.auth-shell--centered {
  grid-template-columns: 1fr;
  max-width: 460px;
}

.auth-shell::before,
.auth-shell::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  top: 14px;
}
.auth-shell::before { left: 14px; }
.auth-shell::after { right: 14px; }

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .gauge-panel { display: none; }
}

/* --- Gauge side panel --- */
.gauge-panel {
  background: var(--panel-raised);
  border-right: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-mark {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-mark span { color: var(--accent); }

.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.gauge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.gauge-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
}

.gauge-needle {
  transform-origin: 100px 100px;
}

.panel-footnote {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* --- Form side --- */
.form-panel {
  padding: 44px 40px;
}

.form-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.form-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}

.form-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.field-group { margin-bottom: 18px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}

input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 127, 181, 0.15);
}

input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.identity-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.identity-toggle button {
  flex: 1;
  padding: 10px;
  background: var(--panel-raised);
  color: var(--text-muted);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.identity-toggle button.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}
.identity-toggle button:not(.active):hover { color: var(--text); }

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.form-footer {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}
.form-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

.errorlist {
  list-style: none;
  padding: 10px 14px;
  margin: 0 0 18px;
  background: rgba(193, 68, 14, 0.08);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: #b03d0f;
  font-size: 13px;
}
.errorlist li + li { margin-top: 4px; }

/* OTP inputs */
.otp-row {
  display: flex;
  direction: ltr;
  unicode-bidi: isolate;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 22px;
}
.otp-row input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  padding: 0;
}
/* ============ Custom Scrollbar ============ */

/* Chrome, Edge, Safari (WebKit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg, #f7f8fa);
}
::-webkit-scrollbar-thumb {
  background: var(--border, #e2e5e9);
  border-radius: 10px;
  border: 2px solid var(--bg, #f7f8fa);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent, #4a7fb5);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border, #e2e5e9) var(--bg, #f7f8fa);
}
/* --- motion layer --- */
.hazard-strip {
  position: relative;
  overflow: hidden;
}
.hazard-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: translateX(-110%);
  animation: strip-sheen 5s ease-in-out infinite;
}

.auth-shell { animation: shell-in 0.55s var(--ease-out) both; }

.gauge-panel > *,
.form-panel > * { animation: rise-in 0.55s var(--ease-out) both; }
.gauge-panel > *:nth-child(2) { animation-delay: 0.08s; }
.gauge-panel > *:nth-child(3) { animation-delay: 0.16s; }
.form-panel > *:nth-child(2) { animation-delay: 0.06s; }
.form-panel > *:nth-child(3) { animation-delay: 0.12s; }
.form-panel > *:nth-child(4) { animation-delay: 0.18s; }
.form-panel > *:nth-child(5) { animation-delay: 0.24s; }
.form-panel > *:nth-child(6) { animation-delay: 0.3s; }

label { transition: color 0.2s ease; }
.field-group:focus-within label { color: var(--accent); }

input:hover { border-color: #c6ccd4; }

.identity-toggle button { transition: background 0.2s, color 0.2s, transform 0.12s ease; }
.identity-toggle button:not(.active):hover { background: #e4e8ec; }
.identity-toggle button:active { transform: scale(0.97); }

.gauge-value { font-variant-numeric: tabular-nums; }

.panel-footnote::after {
  content: '▌';
  color: var(--accent);
  margin-inline-start: 4px;
  animation: caret-blink 1.1s steps(1, end) infinite;
}

.errorlist { animation: rise-in 0.4s var(--ease-out) 0.15s both; }

.field-reveal { animation: field-in 0.32s var(--ease-out); }

.otp-row input {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-spring), background 0.2s;
  animation: rise-in 0.45s var(--ease-out) both;
}
.otp-row input:nth-child(1) { animation-delay: 0.25s; }
.otp-row input:nth-child(2) { animation-delay: 0.3s; }
.otp-row input:nth-child(3) { animation-delay: 0.35s; }
.otp-row input:nth-child(4) { animation-delay: 0.4s; }
.otp-row input:nth-child(5) { animation-delay: 0.45s; }
.otp-row input:nth-child(6) { animation-delay: 0.5s; }
.otp-row input.filled {
  border-color: var(--accent);
  background: #ffffff;
}
.otp-row input.pop { animation: otp-pop 0.3s var(--ease-spring); }
.otp-row.shake { animation: otp-shake 0.4s ease; }

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.18s var(--ease-out), box-shadow 0.22s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  inset-inline-start: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start 0.55s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(74, 127, 181, 0.3);
}
.btn-primary:hover:not(:disabled)::before { inset-inline-start: 115%; }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-primary .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
.btn-primary.is-loading { color: transparent !important; pointer-events: none; }
.btn-primary.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes shell-in {
  from { opacity: 0; transform: translateY(16px) scale(0.995); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes field-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes strip-sheen {
  0%, 55% { transform: translateX(-110%); }
  85%, 100% { transform: translateX(110%); }
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes otp-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ RTL Support ============ */
[dir="rtl"] .auth-shell {
  direction: rtl;
}

[dir="rtl"] .form-panel {
  direction: rtl;
}

[dir="rtl"] .field-row {
  direction: rtl;
}

[dir="rtl"] .identity-toggle {
  direction: rtl;
}

[dir="rtl"] .identity-toggle button {
  text-align: center;
}

[dir="rtl"] .field-group label {
  text-align: right;
}

[dir="rtl"] input {
  text-align: right;
}

[dir="rtl"] .btn-primary {
  direction: rtl;
}

[dir="rtl"] .form-footer {
  direction: rtl;
}

[dir="rtl"] .otp-row {
  direction: ltr;
}

[dir="rtl"] .gauge-panel {
  direction: rtl;
}

[dir="rtl"] .panel-footnote {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .brand-mark {
  direction: rtl;
}

[dir="rtl"] .auth-shell::before {
  left: auto;
  right: 14px;
}

[dir="rtl"] .auth-shell::after {
  right: auto;
  left: 14px;
}

/* ============ Mobile Refinements (320-430px) ============ */

/* --- Auth shell: padding, gauge panel hiding --- */
@media (max-width: 480px) {
  body { padding: 24px 12px; }
  .auth-shell { border-radius: 0; max-width: 100%; }
  .auth-shell::before,
  .auth-shell::after { display: none; }
  
  .form-panel { padding: 32px 20px; }
  .form-eyebrow { font-size: 10px; }
  .form-title { font-size: clamp(24px, 6vw, 28px); }
  .form-sub { font-size: 13.5px; margin-bottom: 24px; }
  .field-group { margin-bottom: 16px; }
  
  label { font-size: 11px; margin-bottom: 6px; }
  input { min-height: 48px; font-size: 16px; padding: 14px 14px; }
  .field-hint { font-size: 11px; }
  
  .field-row { grid-template-columns: 1fr; gap: 0; }
  
  .identity-toggle { margin-bottom: 16px; }
  .identity-toggle button { min-height: 44px; font-size: 11px; padding: 12px; }
  .identity-toggle button.active { font-size: 11px; }
  
  .divider { margin: 18px 0; font-size: 10px; }
  
  .btn-primary { min-height: 48px; font-size: 14px; padding: 14px; }
  
  .form-footer { font-size: 12.5px; margin-top: 18px; }
  .errorlist { padding: 10px 12px; font-size: 12px; }
}

/* --- OTP inputs: scaling for small screens --- */
@media (max-width: 430px) {
  .otp-row { gap: 8px; margin: 6px 0 18px; }
  .otp-row input {
    width: 42px;
    height: 48px;
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .otp-row { gap: 6px; }
  .otp-row input {
    width: 38px;
    height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 320px) {
  .otp-row { gap: 4px; }
  .otp-row input {
    width: 34px;
    height: 40px;
    font-size: 15px;
  }
}

/* --- Verify OTP page (centered shell) --- */
@media (max-width: 480px) {
  .auth-shell--centered { max-width: 100%; }
  .form-panel { padding: 28px 16px; }
  .form-title { font-size: clamp(22px, 6vw, 26px); }
  .form-sub { font-size: 13px; }
}

/* --- Gauge panel: ensure hidden on mobile --- */
@media (max-width: 760px) {
  .gauge-panel { display: none !important; }
}

/* --- Button loading state spinner --- */
@media (max-width: 480px) {
  .btn-primary.is-loading::after {
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
  }
}

/* --- RTL specific for mobile --- */
@media (max-width: 480px) {
  [dir="rtl"] .form-panel { direction: rtl; }
  [dir="rtl"] .field-row { direction: rtl; }
  [dir="rtl"] .identity-toggle { direction: rtl; }
  [dir="rtl"] .otp-row { direction: ltr; }
  [dir="rtl"] .btn-primary { direction: rtl; }
  [dir="rtl"] .form-footer { direction: rtl; text-align: center; }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #8b929a;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe3e7;
}

.auth-divider span {
  white-space: nowrap;
}

/* =========================================================
   GOOGLE OAUTH
   ========================================================= */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #8b929a;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dfe3e7;
}

.auth-divider span {
    white-space: nowrap;
}


/* Google Login Button */

.btn-google {
    position: relative;

    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    box-sizing: border-box;

    background: #ffffff;

    color: #202124;

    border: 1px solid #d8dde2;

    border-radius: 5px;

    text-decoration: none;

    font-family: "Inter", sans-serif;

    font-size: 13px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn-google:hover {
    background: #fafbfc;

    border-color: #bfc6cd;

    box-shadow:
        0 5px 16px rgba(25, 35, 45, 0.08);

    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);

    box-shadow: none;
}


/* Google G */

.google-icon {
    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-family: Arial, sans-serif;

    font-size: 18px;

    font-weight: 700;

    color: #4285f4;
}


/* =========================================================
   GOOGLE CONFIRMATION PAGE
   ========================================================= */

.google-auth-page {
    background: #f7f8fa;
}

.oauth-shell {
    min-height: calc(100vh - 18px);

    display: grid;

    grid-template-columns: 38% 62%;
}


/* Left panel */

.oauth-side-panel {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 50px 45px;

    background:
        linear-gradient(
            145deg,
            #171a1d,
            #24292e
        );

    color: #fff;

    overflow: hidden;
}

.oauth-side-panel::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    pointer-events: none;
}


/* Brand */

.oauth-brand {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
}

.oauth-brand-main {
    font-family: "Oswald", sans-serif;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: .12em;
}

.oauth-brand-sub {
    margin-top: 2px;

    font-family: "JetBrains Mono", monospace;

    font-size: 9px;

    letter-spacing: .3em;

    color: #7fa2c1;
}


/* System */

.oauth-system {
    position: relative;
    z-index: 1;

    margin: auto 0;
}

.system-label {
    font-family: "JetBrains Mono", monospace;

    font-size: 9px;

    letter-spacing: .18em;

    color: #858e96;
}

.system-line {
    height: 1px;

    margin: 14px 0 28px;

    background:
        linear-gradient(
            90deg,
            #4a7fb5,
            transparent
        );
}


/* Gauge */

.oauth-gauge {
    max-width: 270px;

    margin: 0 auto;
}

.gauge-top {
    display: flex;
    justify-content: space-between;

    font-family: "JetBrains Mono", monospace;

    font-size: 8px;

    letter-spacing: .12em;

    color: #68737d;
}

.gauge-svg {
    width: 100%;

    display: block;
}

.gauge-needle {
    stroke: #4a7fb5;

    stroke-width: 3;

    stroke-linecap: round;

    transform-origin: 120px 115px;

    animation: googleGauge 1.2s ease-out forwards;
}

.gauge-center {
    fill: #4a7fb5;

    stroke: #fff;

    stroke-width: 3;
}

.gauge-value {
    display: flex;
    flex-direction: column;

    align-items: center;

    margin-top: -18px;
}

.gauge-value strong {
    font-family: "Oswald", sans-serif;

    font-size: 19px;

    letter-spacing: .14em;
}

.gauge-value span {
    margin-top: 2px;

    font-family: "JetBrains Mono", monospace;

    font-size: 7px;

    letter-spacing: .2em;

    color: #68737d;
}


/* Status */

.system-status {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    margin-top: 30px;
}

.system-status div {
    padding: 11px 9px;

    border: 1px solid #343a40;

    background: rgba(255,255,255,.025);
}

.system-status span {
    display: block;

    margin-bottom: 5px;

    font-family: "JetBrains Mono", monospace;

    font-size: 7px;

    color: #707a83;
}

.system-status strong {
    font-family: "JetBrains Mono", monospace;

    font-size: 8px;

    color: #d9dde1;
}

.status-ready {
    color: #6fa3d4 !important;
}


/* Side footer */

.oauth-side-footer {
    position: relative;
    z-index: 1;

    font-family: "JetBrains Mono", monospace;

    font-size: 7px;

    line-height: 1.9;

    letter-spacing: .08em;

    color: #606a73;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.oauth-main {
    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px;
}

.oauth-content {
    width: 100%;

    max-width: 520px;
}

.oauth-eyebrow {
    margin-bottom: 10px;

    font-family: "JetBrains Mono", monospace;

    font-size: 9px;

    letter-spacing: .16em;

    color: #4a7fb5;

    text-transform: uppercase;
}

.oauth-content h1 {
    margin: 0;

    font-family: "Oswald", sans-serif;

    font-size: 48px;

    line-height: 1;

    font-weight: 600;

    color: #1c1f22;
}

.oauth-description {
    margin: 17px 0 30px;

    font-size: 13px;

    line-height: 1.8;

    color: #737a81;
}


/* =========================================================
   GOOGLE CARD
   ========================================================= */

.google-account-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    border: 1px solid #dfe3e7;

    background: #fff;

    box-shadow:
        0 12px 30px rgba(25,35,45,.055);

    overflow: hidden;
}

.google-account-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background: #4a7fb5;
}

.google-logo-wrap {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #e0e4e8;

    background: #fafbfc;
}

.google-logo {
    font-family: Arial, sans-serif;

    font-size: 23px;

    font-weight: 700;

    color: #4285f4;
}

.google-account-info {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.google-label {
    font-family: "JetBrains Mono", monospace;

    font-size: 7px;

    letter-spacing: .12em;

    color: #9299a0;

    text-transform: uppercase;
}

.google-account-info strong {
    font-family: "Oswald", sans-serif;

    font-size: 19px;

    font-weight: 500;

    color: #202428;
}

.google-description {
    font-size: 10px;

    color: #858c93;
}


/* Secure badge */

.google-status {
    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 7px;

    font-family: "JetBrains Mono", monospace;

    font-size: 7px;

    color: #65707a;
}

.google-status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #5b91bd;

    box-shadow:
        0 0 0 4px rgba(91,145,189,.1);
}


/* =========================================================
   SECURITY MESSAGE
   ========================================================= */

.oauth-security {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 13px;

    padding: 13px 15px;

    border: 1px solid #e3e7ea;

    background: #fafbfc;
}

.security-icon {
    width: 26px;
    height: 26px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #e9f1f8;

    color: #4a7fb5;

    font-size: 12px;

    font-weight: 700;
}

.oauth-security div:last-child {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.oauth-security strong {
    font-size: 11px;

    color: #30353a;
}

.oauth-security span {
    font-size: 9px;

    color: #858c93;
}


/* =========================================================
   CONTINUE BUTTON
   ========================================================= */

.oauth-form {
    margin-top: 22px;
}

.oauth-primary-button {
    position: relative;

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    background:
        linear-gradient(
            135deg,
            #26333f,
            #3b5e7c
        );

    color: #fff;

    cursor: pointer;

    font-family: "Oswald", sans-serif;

    font-size: 15px;

    letter-spacing: .06em;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.oauth-primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(40,65,85,.18);
}

.button-arrow {
    position: absolute;

    right: 18px;

    font-size: 19px;
}


/* =========================================================
   BACK
   ========================================================= */

.oauth-back {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    color: #737a81;

    text-decoration: none;

    font-size: 11px;

    transition: color .2s ease;
}

.oauth-back:hover {
    color: #4a7fb5;
}


/* =========================================================
   TECH FOOTER
   ========================================================= */

.oauth-tech {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 38px;

    font-family: "JetBrains Mono", monospace;

    font-size: 6px;

    letter-spacing: .08em;

    color: #a1a7ad;
}

.tech-divider {
    width: 16px;

    height: 1px;

    background: #d7dbe0;
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes googleGauge {

    0% {
        transform: rotate(-65deg);
    }

    100% {
        transform: rotate(0deg);
    }

}


/* =========================================================
   RTL
   ========================================================= */

html[dir="rtl"] .oauth-side-panel {
    border-right: 0;

    border-left: 1px solid #30353a;
}

html[dir="rtl"] .button-arrow {
    right: auto;

    left: 18px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .oauth-shell {
        grid-template-columns: 1fr;
    }

    .oauth-side-panel {
        min-height: auto;

        padding: 30px 25px;

        border: 0;

        border-bottom: 1px solid #30353a;
    }

    .oauth-system {
        margin: 40px 0 25px;
    }

    .oauth-gauge {
        max-width: 220px;
    }

    .oauth-side-footer {
        display: none;
    }

    .oauth-main {
        padding: 50px 25px;
    }

    .oauth-content h1 {
        font-size: 40px;
    }
}


@media (max-width: 520px) {

    .oauth-main {
        padding: 40px 18px;
    }

    .oauth-side-panel {
        padding: 25px 18px;
    }

    .google-status {
        display: none;
    }

    .google-account-card {
        padding: 15px;
    }

    .oauth-tech {
        flex-wrap: wrap;

        margin-top: 30px;
    }
}