﻿/* =========================================
   HOS Login Page
========================================= */

.hos-login-page {
  margin: 26px 0 40px;
}

.hos-login-page__body {
  display: block;
}

/* =========================================
   Layout
========================================= */

.hos-auth {
  margin-bottom: 24px;
}

.hos-auth__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.hos-auth__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
}

.hos-auth__contentInner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 660px;
  margin-left: auto;
}

/* =========================================
   Intro Panel
========================================= */

.hos-auth__intro {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 32%),
    linear-gradient(135deg, #155c47 0%, #1f7a5c 55%, #2b8f6e 100%);
  color: #fff;
  min-height: 100%;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
}

.hos-auth__introInner {
  position: relative;
  z-index: 1;
  padding: 34px 32px;
}

.hos-auth__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #f7fffb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hos-auth__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
}

.hos-auth__subtitle {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hos-auth__benefits {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hos-auth__benefits li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hos-auth__benefitIcon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: #f3c257;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.hos-auth__benefits strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}

.hos-auth__benefits span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hos-auth__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hos-auth__trust span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

/* =========================================
   Cards
========================================= */

.hos-auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.hos-auth-card--support,
.hos-auth-card--login,
.hos-auth-card--external {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.hos-auth-card--login {
  padding: 26px 26px 24px;
}

.hos-auth-card__header {
  margin-bottom: 18px;
}

.hos-auth-card--login .hos-auth-card__header,
.hos-auth-card--login form {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hos-auth-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hos-auth-card__header h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.7rem;
  line-height: 1.15;
  font-weight: 800;
}

.hos-auth-card__header p {
  margin: 0;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hos-auth-card__actions {
  margin-top: 18px;
}

.hos-auth-card__actions--stacked {
  display: grid;
  gap: 12px;
}

.hos-auth-card__actions--login {
  max-width: 560px;
  margin: 22px auto 0;
}

.hos-auth-card__note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* =========================================
   Buttons
========================================= */

.hos-auth-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hos-auth-btn:hover {
  transform: translateY(-1px);
}

.hos-auth-btn--primary {
  background: linear-gradient(135deg, #1f7a5c 0%, #166534 100%);
  border: 1px solid #166534;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(22, 101, 52, 0.16);
}

.hos-auth-btn--primary:hover {
  background: linear-gradient(135deg, #17664d 0%, #14532d 100%);
  color: #fff !important;
}

.hos-auth-btn--secondary {
  background: #f8fafc;
  border: 1px solid #dbe3eb;
  color: #0f172a !important;
}

.hos-auth-btn--secondary:hover {
  background: #f1f5f9;
  color: #0f172a !important;
}

/* =========================================
   Form
========================================= */

.hos-auth-form {
  display: grid;
  gap: 18px;
}

.hos-auth-form__group {
  margin: 0;
}

.hos-auth-form__label,
.hos-auth-card .inputs label:not(.remember-me) {
  display: block;
  margin-bottom: 7px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
}

.hos-auth-form__input,
.hos-auth-card input[type="text"],
.hos-auth-card input[type="email"],
.hos-auth-card input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-size: 0.98rem;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hos-auth-form__input:focus,
.hos-auth-card input[type="text"]:focus,
.hos-auth-card input[type="email"]:focus,
.hos-auth-card input[type="password"]:focus {
  border-color: #1f7a5c;
  box-shadow: 0 0 0 4px rgba(31, 122, 92, 0.10);
  outline: none;
}

.hos-auth-form__validation,
.hos-auth-card .field-validation-error,
.hos-auth-card .validation-summary-errors,
.hos-auth-card .input-validation-error + span {
  display: block;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 0.88rem;
}

.hos-auth__error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.93rem;
  line-height: 1.5;
}

.hos-auth-form__options,
.hos-auth-card .inputs.reversed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-top: 4px;
  margin-top: 2px;
}

.hos-auth-form__remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hos-auth-form__remember input[type="checkbox"],
.hos-auth-card .inputs.reversed input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1f7a5c;
}

.hos-auth-form__remember .remember-me,
.hos-auth-card .remember-me {
  margin: 0;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.hos-auth-form__forgot,
.hos-auth-card .forgot-password {
  margin-left: auto;
  font-size: 0.93rem;
  white-space: nowrap;
}

.hos-auth-form__forgot a,
.hos-auth-card .forgot-password a {
  color: #166534;
  font-weight: 700;
  text-decoration: none;
}

.hos-auth-form__forgot a:hover,
.hos-auth-card .forgot-password a:hover {
  text-decoration: underline;
}

.hos-auth-form__captcha {
  margin-top: 4px;
}

/* =========================================
   External Login / Info
========================================= */

.hos-auth-extra {
  margin-top: 6px;
  margin-bottom: 22px;
}

.hos-auth-extra__inner {
  max-width: 660px;
  margin-left: auto;
}

.hos-auth-extra__grid {
  display: block;
}

.hos-auth-card--external {
  padding: 24px;
}

.hos-auth-external__methods {
  margin-top: 10px;
}

.hos-auth-info {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.hos-auth-info:empty,
.hos-auth-external__methods:empty {
  display: none;
}

/* =========================================
   Default nop wrappers cleanup
========================================= */

.hos-login-page .page-title {
  display: none;
}

.hos-login-page .new-wrapper,
.hos-login-page .returning-wrapper,
.hos-login-page .section,
.hos-login-page .fieldset {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hos-login-page .title,
.hos-login-page .text,
.hos-login-page .buttons {
  padding: 0;
}

.hos-login-page .external-authentication {
  margin: 0;
  border: 0;
  background: transparent;
}

/* =========================================
   Topic block cleanup
========================================= */

.hos-auth-info .topic-block,
.hos-auth-card__note .topic-block {
  margin: 0;
}

.hos-auth-info .topic-block-body,
.hos-auth-card__note .topic-block-body {
  color: #475569;
  line-height: 1.7;
}

/* =========================================
   Responsive
========================================= */

@media (min-width: 1101px) {
  .hos-auth__shell {
    align-items: start;
  }

  .hos-auth__intro {
    min-height: 100%;
  }

  .hos-auth__content {
    padding-left: 12px;
  }
}

@media (max-width: 1100px) {
  .hos-auth__shell {
    grid-template-columns: 1fr;
  }

  .hos-auth__introInner {
    padding: 30px 26px;
  }

  .hos-auth__content {
    padding-left: 0;
  }

  .hos-auth__contentInner,
  .hos-auth-extra__inner {
    max-width: none;
    margin-left: 0;
  }

  .hos-auth-card--login .hos-auth-card__header,
  .hos-auth-card--login form,
  .hos-auth-card__actions--login {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .hos-login-page {
    margin: 18px 0 30px;
  }

  .hos-auth__shell,
  .hos-auth__contentInner {
    gap: 16px;
  }

  .hos-auth__introInner,
  .hos-auth-card,
  .hos-auth-info {
    padding: 20px;
  }

  .hos-auth__title {
    font-size: 2rem;
  }

  .hos-auth-card__header h2 {
    font-size: 1.45rem;
  }

  .hos-auth__benefits li {
    padding: 12px 13px;
  }

  .hos-auth-form__options,
  .hos-auth-card .inputs.reversed {
    flex-direction: column;
    align-items: flex-start;
  }

  .hos-auth-form__forgot,
  .hos-auth-card .forgot-password {
    margin-left: 0;
    white-space: normal;
  }

  .hos-auth-btn {
    min-height: 46px;
  }
}