:root {
  --gwp-primary: #2b467d;
  --gwp-accent: #38a852;
  --gwp-text: #6b7280;
  --gwp-text-dark: #1f2937;
  --gwp-border: #d1d5db;
  --gwp-panel: #ffffff;
  --gwp-error: #b42318;
  --gwp-error-bg: #fef3f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gwp-panel);
  color: var(--gwp-text-dark);
}

.gwp-login-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.gwp-login-hero {
  flex: 0 0 70%;
  background: #e8f0f8 center / cover no-repeat;
  min-height: 240px;
}

.gwp-login-panel {
  flex: 0 0 30%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 2rem 2.5rem;
  background: var(--gwp-panel);
  position: relative;
  overflow: hidden;
}

.gwp-login-panel-inner {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gwp-login-brand {
  margin-bottom: 1.35rem;
}

.gwp-login-logo {
  width: 64px;
  height: auto;
  margin-bottom: 0.65rem;
  display: block;
}

.gwp-login-title {
  margin: 0 0 0.4rem;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.gwp-title-gwp {
  color: var(--gwp-accent);
}

.gwp-title-rest {
  color: var(--gwp-primary);
}

.gwp-login-subtitle {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--gwp-text);
}

.gwp-login-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
}

.gwp-login-divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 168, 82, 0.05), rgba(56, 168, 82, 0.75), rgba(56, 168, 82, 0.05));
}

.gwp-login-divider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--gwp-accent);
  flex-shrink: 0;
}

.gwp-login-divider-icon svg {
  width: 14px;
  height: 14px;
}

.gwp-login-tagline {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--gwp-text);
}

.gwp-field {
  margin-bottom: 0.95rem;
}

.gwp-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gwp-text-dark);
}

.gwp-input-wrap {
  position: relative;
}

.gwp-input-wrap input {
  width: 100%;
  padding: 0.72rem 2.65rem 0.72rem 2.35rem;
  border: 1px solid var(--gwp-border);
  border-radius: 10px;
  font-size: 0.94rem;
  color: var(--gwp-text-dark);
  background: #fff;
}

.gwp-input-wrap input::placeholder {
  color: #9ca3af;
}

.gwp-input-wrap input:focus {
  outline: 2px solid rgba(43, 70, 125, 0.18);
  border-color: var(--gwp-primary);
}

.gwp-input-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
}

.gwp-toggle-password {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gwp-toggle-password svg {
  width: 1.15rem;
  height: 1.15rem;
}

.gwp-eye-closed {
  display: none;
}

.gwp-toggle-password[aria-pressed="true"] .gwp-eye-open {
  display: none;
}

.gwp-toggle-password[aria-pressed="true"] .gwp-eye-closed {
  display: block;
}

.gwp-sign-in {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.82rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--gwp-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.gwp-sign-in:hover {
  background: #233a66;
}

.gwp-login-errors {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: var(--gwp-error-bg);
  color: var(--gwp-error);
  font-size: 0.875rem;
}

.gwp-login-footer {
  margin-top: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gwp-primary);
}

.gwp-footer-shield {
  width: 1rem;
  height: 1rem;
  margin-right: 0.15rem;
}

.gwp-footer-dot {
  color: var(--gwp-accent);
  font-weight: 700;
  line-height: 1;
}

.gwp-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: url("/static/branding/wave-pattern.svg") bottom center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1024px) {
  .gwp-login-hero {
    flex: 0 0 45%;
  }

  .gwp-login-panel {
    flex: 1 1 55%;
  }
}

@media (max-width: 768px) {
  .gwp-login-page {
    flex-direction: column;
  }

  .gwp-login-hero {
    flex: 0 0 180px;
    min-height: 180px;
  }

  .gwp-login-panel {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5rem 1.25rem 2rem;
  }
}
