:root {
  --gugo-surface: #e9eef5;
  --gugo-ink: #17243d;
  --gugo-muted: #6e7c92;
  --gugo-blue: #0c76b3;
  --gugo-blue-dark: #075384;
  --gugo-orange: #df8a27;
  --gugo-danger: #d7374a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.gugo-auth-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--gugo-surface);
  color: var(--gugo-ink);
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gugo-auth-layout {
  display: grid;
  grid-template-columns: minmax(440px, 42%) minmax(0, 58%);
  min-height: 100vh;
}

.gugo-auth-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
  background: var(--gugo-surface);
  box-shadow: 18px 0 48px rgba(3, 35, 67, 0.18);
}

.gugo-auth-topbar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(30px, 5vw, 72px) 18px;
}

.gugo-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gugo-ink);
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.gugo-auth-brand:hover { color: var(--gugo-ink); text-decoration: none; }
.gugo-auth-brand strong { font-weight: 700; }

.gugo-auth-brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 13px;
  background: linear-gradient(145deg, #f8fbff, #dce3ed);
  color: var(--gugo-blue);
  box-shadow: 5px 5px 12px #c7ced8, -5px -5px 12px #fff;
  font-size: 18px;
}

.gugo-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--gugo-surface);
  box-shadow: inset 3px 3px 7px #c9d0da, inset -3px -3px 7px #fff;
}

.gugo-language-button {
  display: inline-flex;
  min-width: 54px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--gugo-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gugo-language-button:hover {
  color: var(--gugo-blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.gugo-language-button.is-active {
  border-color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #f8fbff, #dde4ed);
  color: var(--gugo-blue-dark);
  box-shadow: 3px 3px 8px #c3cad4, -3px -3px 8px #fff;
}

.gugo-language-button i { flex: 0 0 auto; }

.gugo-auth-content {
  display: flex;
  width: 100%;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 28px clamp(30px, 5vw, 72px) 54px;
}

.gugo-auth-content .login-box {
  width: 100%;
  max-width: 430px;
  margin: 0;
}

.gugo-auth-content .card {
  margin: 0;
  border: 0;
  border-radius: 28px;
  background: var(--gugo-surface);
  box-shadow: 18px 18px 42px #c7ced8, -18px -18px 42px #fff;
  overflow: visible;
}

.gugo-auth-content .card-header {
  border: 0;
  border-bottom: 1px solid rgba(23, 36, 61, 0.07);
  border-radius: 28px 28px 0 0;
  background: transparent;
  padding: 16px 28px;
}

.gugo-auth-content .login-card-body {
  border-radius: 28px;
  background: transparent;
  color: var(--gugo-ink);
  padding: 42px;
}

.tenant-change-component { color: var(--gugo-muted); font-size: 14px; }
.tenant-change-component a { color: var(--gugo-blue-dark); font-weight: 600; }
.gugo-login-heading { margin-bottom: 34px; }

.gugo-login-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gugo-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gugo-login-heading h1 {
  margin: 0 0 10px;
  color: var(--gugo-ink);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.gugo-login-heading p {
  margin: 0;
  color: var(--gugo-muted);
  font-size: 16px;
  line-height: 1.5;
}

.gugo-form-field { position: relative; margin-bottom: 23px; }

.gugo-form-field > label {
  display: block;
  margin: 0 0 9px 4px;
  color: #40506a;
  font-size: 14px;
  font-weight: 600;
}

.gugo-neu-control {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 15px;
  background: var(--gugo-surface);
  box-shadow: inset 6px 6px 12px #cbd2dc, inset -6px -6px 12px #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gugo-neu-control:focus-within {
  border-color: rgba(12, 118, 179, 0.48);
  box-shadow: inset 3px 3px 8px #cbd2dc, inset -3px -3px 8px #fff, 0 0 0 4px rgba(12, 118, 179, 0.1);
  transform: translateY(-1px);
}

.gugo-neu-control .form-control {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--gugo-ink);
  font-size: 15px;
  font-weight: 500;
  padding: 0 52px;
  box-shadow: none;
}

.gugo-neu-control .form-control:focus { background: transparent; color: var(--gugo-ink); box-shadow: none; }
.gugo-neu-control .form-control::placeholder { color: #929eb0; font-weight: 400; }

.gugo-input-icon {
  position: absolute;
  top: 50%;
  left: 19px;
  z-index: 2;
  color: #8290a6;
  font-size: 16px;
  transform: translateY(-50%);
  transition: color 160ms ease;
}

.gugo-neu-control:focus-within .gugo-input-icon { color: var(--gugo-blue); }

.gugo-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  background: linear-gradient(145deg, #f5f8fc, #dce3ec);
  color: #7c899c;
  box-shadow: 3px 3px 7px #c4cbd5, -3px -3px 7px #fff;
  transform: translateY(-50%);
  transition: color 160ms ease, box-shadow 160ms ease;
}

.gugo-password-toggle:hover { color: var(--gugo-blue-dark); }
.gugo-password-toggle:active { box-shadow: inset 2px 2px 5px #c3cad4, inset -2px -2px 5px #fff; }

.gugo-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 28px;
}

.gugo-remember-me input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gugo-remember-me label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: #52617a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

.gugo-neu-checkbox {
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 7px;
  background: var(--gugo-surface);
  color: var(--gugo-blue);
  box-shadow: 3px 3px 7px #c5ccd6, -3px -3px 7px #fff;
}

.gugo-neu-checkbox i {
  font-size: 10px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 150ms ease, transform 150ms ease;
}

.gugo-remember-me input:checked + label .gugo-neu-checkbox { box-shadow: inset 2px 2px 5px #c5ccd6, inset -2px -2px 5px #fff; }
.gugo-remember-me input:checked + label .gugo-neu-checkbox i { opacity: 1; transform: scale(1); }
.gugo-remember-me input:focus-visible + label .gugo-neu-checkbox { outline: 3px solid rgba(12, 118, 179, 0.24); outline-offset: 2px; }

.gugo-login-button {
  display: flex;
  width: 100%;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #0e7dbb 0%, #07598c 100%);
  color: #fff;
  box-shadow: 8px 8px 18px #c1c8d2, -8px -8px 18px #fff, inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.gugo-login-button:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 10px 12px 22px #c0c7d1, -8px -8px 18px #fff;
}

.gugo-login-button:active { transform: translateY(0); box-shadow: inset 4px 4px 10px #06476f, inset -3px -3px 8px #1595d5; }
.gugo-login-button i { font-size: 13px; transition: transform 160ms ease; }
.gugo-login-button:hover i { transform: translateX(3px); }
.gugo-register-link { margin-top: 24px; text-align: center; }
.gugo-register-link a { color: var(--gugo-blue-dark); font-size: 14px; font-weight: 600; }

.gugo-login-form label.error {
  display: block;
  margin: 7px 4px 0;
  color: var(--gugo-danger);
  font-size: 12px;
  font-weight: 600;
}

.gugo-login-form .form-control.error { color: var(--gugo-danger); }

.gugo-auth-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px clamp(30px, 5vw, 72px) 30px;
  color: #8591a3;
  font-size: 12px;
}

.gugo-auth-visual {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #041b4e;
}

.gugo-auth-visual-image,
.gugo-auth-visual-shade { position: absolute; inset: 0; width: 100%; height: 100%; }

.gugo-auth-visual-image {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
}

.gugo-auth-visual-shade {
  background: linear-gradient(180deg, rgba(2, 15, 54, 0.12) 0%, rgba(1, 12, 44, 0.02) 42%, rgba(1, 11, 41, 0.82) 100%);
}

.gugo-auth-visual-logo {
  position: absolute;
  top: 42px;
  left: 48px;
  width: 155px;
  height: auto;
}

.gugo-auth-visual-copy {
  position: absolute;
  right: 7vw;
  bottom: clamp(46px, 7vh, 86px);
  left: 6vw;
  max-width: 600px;
  color: #fff;
}

.gugo-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gugo-auth-kicker i { color: var(--gugo-orange); font-size: 7px; box-shadow: 0 0 14px rgba(223, 138, 39, 0.9); }

.gugo-auth-visual-copy h2 {
  max-width: 560px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-shadow: 0 3px 20px rgba(0, 9, 34, 0.25);
}

.gugo-auth-visual-copy p {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
}

:focus-visible { outline: 3px solid rgba(12, 118, 179, 0.42); outline-offset: 3px; }
[dir="rtl"] .gugo-input-icon { right: 19px; left: auto; }
[dir="rtl"] .gugo-password-toggle { right: auto; left: 12px; }
[dir="rtl"] .gugo-login-button i { transform: rotate(180deg); }

@media (max-width: 1100px) {
  .gugo-auth-layout { grid-template-columns: minmax(420px, 48%) minmax(0, 52%); }
  .gugo-auth-topbar, .gugo-auth-content, .gugo-auth-footer { padding-right: 34px; padding-left: 34px; }
  .gugo-auth-content .login-card-body { padding: 36px; }
}

@media (max-width: 767.98px) {
  .gugo-auth-layout { display: block; }
  .gugo-auth-panel { min-height: 100vh; box-shadow: none; }
  .gugo-auth-visual { display: none; }
  .gugo-auth-topbar { padding: 22px 22px 14px; }
  .gugo-auth-content { align-items: flex-start; padding: 34px 22px 42px; }
  .gugo-auth-content .login-box { max-width: 460px; }
  .gugo-auth-footer { justify-content: center; padding: 16px 22px 24px; }
}

@media (max-width: 479.98px) {
  .gugo-auth-brand { font-size: 0; }
  .gugo-auth-brand-mark { width: 40px; height: 40px; }
  .gugo-auth-content { padding-top: 20px; }
  .gugo-auth-content .card { border-radius: 22px; box-shadow: 12px 12px 28px #c7ced8, -12px -12px 28px #fff; }
  .gugo-auth-content .login-card-body { padding: 30px 24px; }
  .gugo-login-heading { margin-bottom: 28px; }
  .gugo-login-heading h1 { font-size: 30px; }
  .gugo-language-button { min-width: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
