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

:root {
  --gp-primary: #0b63f6;
  --gp-primary-dark: #0648c8;
  --gp-primary-soft: #eaf3ff;
  --gp-navy: #0f172a;
  --gp-text: #0f172a;
  --gp-muted: #64748b;
  --gp-border: #d7e0ef;
  --gp-card: #ffffff;
  --gp-accent: #74b3ff;
  --gp-hero-content-width: min(340px, 72%);
}

.gp-login-page {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--gp-card);
  color: var(--gp-text);
}

.gp-login-page #main {
  min-height: 100vh;
}

.gp-login-page .oh-alert-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  max-width: 420px;
}

.gp-login {
  display: flex;
  min-height: 100vh;
  height: 100vh;
  background: #061428;
  overflow: hidden;
}

.gp-login__hero {
  position: relative;
  flex: 0 0 60%;
  width: 60%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background-color: #050a30;
  padding: 0 0 2rem 3.25rem;
}

.gp-login__hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/login/gpulse-login-bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.gp-login__hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--gp-hero-content-width);
  max-width: var(--gp-hero-content-width);
  padding: 0;
}

.gp-login__hero-text {
  width: 100%;
  text-align: left;
}

.gp-login__hero-text h2 {
  margin: 0 0 0.75rem;
  font-size: 2.625rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.gp-login__hero-text h3 {
  margin: 0 0 1rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: #ffffff;
}

.gp-login__hero-text p {
  margin: 0;
  font-size: 0.96875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 100%;
}

.gp-login__panel {
  flex: 0 0 40%;
  width: 40%;
  min-width: 320px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2.25rem;
  background: var(--gp-card);
  box-shadow: -12px 0 40px rgba(8, 26, 58, 0.12);
  position: relative;
  z-index: 2;
  overflow-y: auto;
}

.gp-login__form-wrapper {
  width: 100%;
  max-width: 420px;
}

.gp-login__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.gp-login__brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.gp-login__brand span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gp-navy);
  letter-spacing: -0.02em;
}

.gp-login__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gp-navy);
  letter-spacing: -0.02em;
}

.gp-login__subtitle {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gp-muted);
}

.gp-login-page .oh-auth {
  display: block;
  margin: 0;
  min-height: auto;
}

.gp-login-page .oh-auth-card {
  width: 100%;
  max-width: none;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.gp-login-page .oh-form-group {
  margin: 0;
}

.gp-login-page .oh-input-group {
  margin-bottom: 0.875rem;
}

.gp-login-page .oh-label {
  display: none;
}

.gp-login__field {
  position: relative;
}

.gp-login__field.oh-password-input-container {
  position: relative;
}

.gp-login__field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0.55;
}

.gp-login-page .oh-input {
  height: 48px;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--gp-border);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--gp-text);
  background: var(--gp-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gp-login-page .oh-input::placeholder {
  color: #94a3b8;
}

.gp-login-page .oh-input:focus {
  outline: none;
  border-color: var(--gp-primary);
  box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.1);
}

.gp-login-page .oh-password-input-container .oh-input {
  padding-right: 3rem;
}

.gp-login-page .oh-password-input--toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-login-page .oh-password-input--toggle ion-icon {
  font-size: 1.15rem;
  color: var(--gp-muted);
}

.gp-login__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 1.25rem;
}

.gp-login__remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gp-muted);
  cursor: pointer;
  user-select: none;
}

.gp-login__remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gp-primary);
  cursor: pointer;
}

.gp-login-page .oh-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gp-primary);
  text-decoration: none;
}

.gp-login-page .oh-link:hover {
  color: var(--gp-primary-dark);
  text-decoration: underline;
}

.gp-login-page .oh-btn.oh-onboarding-card__button {
  height: 48px;
  margin: 0 0 1.25rem;
  padding: 0 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--gp-primary);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.2s;
}

.gp-login-page .oh-btn.oh-onboarding-card__button:hover {
  background: var(--gp-primary-dark);
}

.gp-login-page .oh-btn.oh-onboarding-card__button ion-icon {
  display: none;
}

.gp-login__init-actions {
  margin-top: 1rem;
}

.gp-login__init-actions .d-flex {
  display: flex;
  gap: 0.75rem;
}

.gp-login__init-actions .oh-btn {
  flex: 1;
  font-size: 0.875rem;
}

@media (max-width: 1199.98px) {
  .gp-login__hero {
    flex: 0 0 60%;
  }

  .gp-login__panel {
    flex: 0 0 40%;
  }
}

@media (max-width: 991.98px) {
  .gp-login {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .gp-login__hero {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 520px;
    padding: 0 0 1.5rem 2rem;
  }

  .gp-login__hero-inner {
    --gp-hero-content-width: min(320px, 84%);
  }

  .gp-login__hero-text h2 {
    font-size: 2rem;
  }

  .gp-login__panel {
    flex: none;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 2.5rem 1.5rem 3rem;
    box-shadow: 0 -8px 32px rgba(8, 26, 58, 0.1);
  }

  .gp-login__form-wrapper {
    max-width: 420px;
  }
}

@media (max-width: 575.98px) {
  .gp-login__hero {
    min-height: 460px;
    padding-left: 1.5rem;
  }

  .gp-login__hero-inner {
    --gp-hero-content-width: min(280px, 88%);
  }

  .gp-login__hero-text h2 {
    font-size: 1.75rem;
  }

  .gp-login__init-actions .d-flex {
    flex-direction: column;
  }
}
