html,
body {
  height: 100%;
  margin: 0;
}

.login_page_new_ui {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 48px 24px;
  font-family: 'Hellix', sans-serif;
  color: #1f2430;
  background:
    linear-gradient(135deg, rgba(68, 58, 156, 0.08), rgba(20, 184, 166, 0.08)),
    #f6f7fb;
}

.login-shell {
  width: min(960px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
  overflow: hidden;
  border: 1px solid rgba(31, 36, 48, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(31, 36, 48, 0.14);
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(10, 15, 28, 0.96), rgba(49, 43, 126, 0.94)),
    #111827;
}

.login-brand-panel::after {
  content: '';
  position: absolute;
  inset: auto 32px 32px auto;
  width: 152px;
  height: 152px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  transform: rotate(12deg);
}

.login-brand-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.torcons-logo {
  width: 152px;
  height: auto;
  object-fit: contain;
}

.login-brand-copy {
  position: relative;
  z-index: 1;
}

.login-brand-copy h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.login-brand-copy p {
  max-width: 300px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.login-brand-footer {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
}

.login-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  padding: 56px 48px;
  box-sizing: border-box;
  justify-self: center;
}

.form-wrapper {
  width: 100%;
  box-sizing: border-box;
}

.form-wrapper h2 {
  margin: 0 0 28px;
  color: #171b26;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #4b5565;
  font-family: 'Hellix', sans-serif !important;
  font-size: 13px !important;
  font-weight: 650;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
}

.login_page_new_ui form {
  display: grid;
  grid-auto-flow: rows;
  gap: 16px;
}

.login_page_new_ui form > * {
  position: relative;
}

.login_page_new_ui form p {
  margin: 0;
}

.login_page_new_ui form .error {
  color: #b42318;
  font-size: 13px;
}

.login_page_new_ui form input,
.login_page_new_ui form select {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Hellix', sans-serif;
}

.login_page_new_ui form input[type="text"],
.login_page_new_ui form input[type="password"],
.login_page_new_ui form input[type="email"],
.login_page_new_ui form select {
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #1f2430;
  font-size: 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login_page_new_ui form input[type="text"]::placeholder,
.login_page_new_ui form input[type="password"]::placeholder,
.login_page_new_ui form input[type="email"]::placeholder {
  color: #9aa3b2;
}

.login_page_new_ui form input[type="text"]:focus,
.login_page_new_ui form input[type="password"]:focus,
.login_page_new_ui form input[type="email"]:focus,
.login_page_new_ui form select:focus {
  border-color: #5146b6;
  box-shadow: 0 0 0 3px rgba(81, 70, 182, 0.14);
}

.login_page_new_ui form input:-webkit-autofill,
.login_page_new_ui form input:-webkit-autofill:hover,
.login_page_new_ui form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1f2430 !important;
  border-color: #d7dce5 !important;
}

.login_page_new_ui form button,
.login-button {
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  background: #5146b6;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Hellix', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: background 150ms ease, transform 80ms ease, box-shadow 150ms ease;
}

.login_page_new_ui form button:hover,
.login-button:hover {
  background: #4338a4;
  box-shadow: 0 10px 24px rgba(81, 70, 182, 0.24);
}

.login_page_new_ui form button:active {
  transform: translateY(1px);
}

.form-group {
  display: block;
}

.form-group input[type="checkbox"] {
  display: none;
  width: initial !important;
  height: initial;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.form-group label {
  position: relative;
  min-height: 20px;
  margin: 0;
  padding-left: 28px;
  cursor: pointer;
  color: #5d6678;
  font-size: 13px !important;
  line-height: 20px;
}

.form-group label:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #cbd3df;
  border-radius: 5px;
  background: #ffffff;
}

.form-group input:checked + label:before {
  border-color: #5146b6;
  background: #5146b6;
}

.form-group input:checked + label:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 4px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login_page_new_ui .field_errors {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  color: #b42318;
  font-size: 13px;
  line-height: 18px;
}

.login_page_new_ui .field_errors li {
  margin-top: 6px;
}

.text-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 22px;
  color: #697386;
  font-size: 14px;
}

.text-wrapper p {
  margin: 0;
}

.text-wrapper a {
  color: #5146b6;
  font-weight: 700;
  text-decoration: none;
}

.text-wrapper a:hover {
  text-decoration: underline;
}

.link {
  color: #5146b6;
}

.link:hover {
  color: #4338a4;
}

.organization-onboarding {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.organization-onboarding__intro h2 {
  margin-bottom: 12px;
}

.organization-onboarding__intro p,
.organization-onboarding__section h3,
.organization-onboarding__invitation-copy p,
.organization-onboarding__empty {
  margin: 0;
}

.organization-onboarding__intro p {
  color: #5d6678;
  font-size: 15px;
  line-height: 1.45;
}

.organization-onboarding__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.organization-onboarding__section h3 {
  color: #1f2430;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
}

.organization-onboarding__invitation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.organization-onboarding__invitation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: #f9fafc;
}

.organization-onboarding__invitation-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.organization-onboarding__invitation-copy strong {
  color: #1f2430;
  font-size: 15px;
}

.organization-onboarding__invitation-copy p,
.organization-onboarding__empty {
  color: #697386;
  font-size: 14px;
  line-height: 1.4;
}

.organization-onboarding__invitation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login_page_new_ui .organization-onboarding__invitation-actions form {
  display: block;
}

.login_page_new_ui .organization-onboarding__decline {
  border: 1px solid #cfd5df;
  background: #ffffff;
  color: #3f4756;
}

.login_page_new_ui .organization-onboarding__decline:hover {
  background: #f2f4f8;
  box-shadow: none;
}

.organization-onboarding__alternate {
  width: fit-content;
  color: #5146b6;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.organization-onboarding__alternate:hover {
  color: #4338a4;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .login_page_new_ui {
    padding: 20px;
  }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 220px;
    padding: 28px;
  }

  .login-brand-panel::after {
    width: 104px;
    height: 104px;
  }

  .login-brand-copy h1 {
    font-size: 28px;
  }

  .login-center {
    max-width: none;
    padding: 34px 28px;
  }
}

@media (max-width: 480px) {
  .login_page_new_ui {
    padding: 0;
    background: #ffffff;
  }

  .login-shell {
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .login-brand-panel {
    min-height: 190px;
    padding: 24px;
  }

  .torcons-logo {
    width: 132px;
  }

  .login-center {
    padding: 30px 24px;
  }
}
