:root {
  --accent-color: #14b8a6;
  --accent-color-dark: #0f9485;
  --card-width: 326px;
  --text-body: #363636;
  --text-muted: #72767b;
  --text-label: #363636;
  --link-color: #0088ce;
  --link-hover: #0099d3;
  --locale-color: #6a6e73;
  --input-border: #f0f0f0;
  --input-focus-border: #000000;
  --bg-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/background.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: var(--text-body);
  font-size: 12px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: #1f2937;
}

button,
input {
  font: inherit;
}

.portal-shell {
  position: relative;
  min-height: 100vh;
}

.hero-panel {
  position: fixed;
  inset: 0;
  background-image: var(--bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  display: none;
}

.hero-footer {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 2;
}

.brand-corner-logo {
  width: 130px;
  max-width: 130px;
  height: auto;
  object-fit: contain;
}

.brand-corner-fallback {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-panel {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.card-view {
  display: none;
  width: 100%;
  max-width: var(--card-width);
  background: #fff;
  border-radius: 0;
  box-shadow:
    rgba(3, 3, 3, 0.16) 0px 8px 16px 0px,
    rgba(3, 3, 3, 0.08) 0px 0px 6px 0px;
  padding: 20px 14px;
  margin: 0 10px;
}

.card-view.is-active {
  display: block;
}

.card-topline {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--locale-color);
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
  cursor: default;
}

.language-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-top: 2px;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--locale-color);
}

.brand-title {
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
}

.brand-title.compact-title {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d2d2d2;
}

.brand-name {
  font-weight: 300;
}

.brand-card-logo,
.title-image {
  width: 62px;
  height: auto;
  max-height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: baseline;
  margin: 0 3px;
}

.brand-card-fallback {
  display: inline-block;
  vertical-align: baseline;
  margin: 0 3px;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.card-intro,
.login-subtitle {
  margin: 16px 0 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.field-label {
  display: block;
  margin-bottom: 0;
  color: var(--text-label);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  padding: 16px 14px;
  border: 1px solid var(--input-border);
  border-radius: 3px;
  background: #fff;
  color: #151515;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border: 1px solid var(--input-focus-border);
  box-shadow: 0 0 0 1px var(--input-focus-border);
  padding: 16px 14px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 15px;
  gap: 8px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #72767b;
  line-height: 20px;
}

.remember-me input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #151515;
}

.action-button {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 3px;
  background: var(--accent-color);
  color: #fff;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 18.67px;
  padding: 20px;
  margin-top: 5px;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px 0px;
  transition: background-color 0.23s ease-in-out;
}

.action-button:hover,
.action-button:focus-visible {
  background: var(--accent-color-dark);
}

.text-link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
}

.text-link:hover,
.button-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.button-link {
  display: block;
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.alternate-view .method-list {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.method-card {
  display: grid;
  grid-template-columns: 2em 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 0;
  border-top: 1px solid #d2d2d2;
  border-radius: 0;
  padding: 1rem 0.25rem;
  text-align: left;
  cursor: pointer;
}

.method-card:first-child {
  border-top: 0;
  padding-top: 1.25rem;
}

.method-card:hover,
.method-card:focus-visible {
  background-color: #f7f8f8;
  outline: none;
}

.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  color: #151515;
  font-size: 1.4em;
}

.method-copy {
  display: grid;
  gap: 4px;
}

.method-title {
  color: var(--link-color);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.method-text {
  color: #6a6e73;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.method-arrow {
  color: #6a6e73;
  font-size: 1.5rem;
  font-weight: 300;
  margin-right: 0.5rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .hero-footer {
    left: 1%;
    bottom: 1%;
  }

  .login-panel {
    padding: 16px;
  }

  .card-view {
    margin: 0;
  }

  .brand-title {
    font-size: 20px;
  }
}
