/* P12 PORTAL AND LOGIN ENTRY PAGES */
body.p12-entry-page {
  margin: 0;
  min-height: 100vh;
  background: var(--p12-bg);
}

body.p12-entry-page > main {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.p12-entry-shell,
.p12-entry-login-shell {
  width: 100%;
  min-height: 100vh;
}

.p12-entry-shell {
  display: flex;
  flex-direction: column;
}

.p12-entry-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.p12-entry-topbar,
.p12-entry-login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}

.p12-entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--p12-text);
  text-decoration: none;
}

.p12-entry-brand:hover {
  color: var(--p12-text);
  text-decoration: none;
}

.p12-entry-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: none;
}

.p12-entry-brand strong,
.p12-entry-brand small {
  display: block;
}

.p12-entry-brand strong {
  font-size: 16px;
  letter-spacing: .01em;
}

.p12-entry-brand small {
  margin-top: 3px;
  color: var(--p12-muted);
  font-size: 12px;
  font-weight: 600;
}

.p12-entry-language {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.p12-entry-language select {
  width: auto;
  min-width: 128px;
  min-height: 38px;
  padding: 7px 34px 7px 10px;
}

.p12-entry-hero {
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--p12-border);
  border-radius: 18px;
  background: #18313d;
  box-shadow: 0 16px 40px rgba(24, 49, 61, .16);
}

.p12-entry-hero h1,
.p12-entry-hero p {
  max-width: 820px;
  color: #fff;
}

.p12-entry-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
}

.p12-entry-kicker {
  margin: 0;
  color: var(--p12-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.p12-entry-hero .p12-entry-kicker {
  color: #cfe9ef;
}

.p12-entry-lead {
  margin: 0;
  color: var(--p12-muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.p12-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.p12-entry-card,
.p12-entry-scope {
  padding: 24px;
  border: 1px solid var(--p12-border);
  border-radius: var(--p12-radius);
  background: var(--p12-surface);
  box-shadow: var(--p12-shadow);
}

.p12-entry-card {
  display: flex;
  min-height: 258px;
  flex-direction: column;
  align-items: flex-start;
}

.p12-entry-card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #e8f1f4;
  color: var(--p12-primary);
  font-size: 13px;
  font-weight: 900;
}

.p12-entry-card h2,
.p12-entry-scope h2 {
  margin: 18px 0 9px;
}

.p12-entry-card p,
.p12-entry-scope p {
  margin: 0;
  line-height: 1.7;
}

.p12-entry-action,
.p12-entry-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: var(--p12-radius-sm);
  padding: 9px 14px;
  font-weight: 800;
}

.p12-entry-action {
  border: 1px solid var(--p12-primary);
  background: var(--p12-primary);
  color: #fff;
  text-decoration: none;
}

.p12-entry-action:hover {
  background: var(--p12-primary-hover);
  color: #fff;
  text-decoration: none;
}

.p12-entry-status {
  border: 1px solid var(--p12-border);
  background: var(--p12-surface-soft);
  color: var(--p12-muted);
}

.p12-entry-scope {
  margin-top: 18px;
}

.p12-entry-scope h2 {
  margin-top: 0;
}

.p12-entry-footer {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: auto auto 0;
  padding: 20px 0 26px;
  color: var(--p12-muted);
  font-size: 12px;
}

.p12-entry-login-shell {
  display: grid;
  place-items: center;
  padding: 28px;
}

.p12-entry-login-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--p12-border);
  border-radius: 18px;
  background: var(--p12-surface);
  box-shadow: 0 18px 46px rgba(24, 39, 52, .14);
}

.p12-entry-login-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--p12-border);
}

.p12-entry-login-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 5vw, 40px);
}

.p12-entry-login-intro .p12-entry-lead {
  font-size: 15px;
}

.p12-entry-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.p12-entry-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.p12-entry-form input,
.p12-entry-form button {
  width: 100%;
}

.p12-entry-message {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--p12-border);
  border-radius: var(--p12-radius-sm);
  background: var(--p12-surface-soft);
  color: var(--p12-muted);
  line-height: 1.55;
}

.p12-entry-message[data-message-kind="success"] {
  border-color: #b8ddcc;
  background: #eaf6f0;
  color: var(--p12-success);
}

.p12-entry-message[data-message-kind="error"] {
  border-color: #efc9c9;
  background: #fff0f0;
  color: var(--p12-danger);
}

.p12-entry-help {
  margin: 16px 0 0;
  color: var(--p12-muted);
  font-size: 13px;
  line-height: 1.65;
}

.p12-entry-back {
  display: inline-flex;
  margin-top: 18px;
  color: var(--p12-primary);
  font-weight: 800;
  text-decoration: none;
}

.p12-entry-back:hover {
  text-decoration: underline;
}

[dir="rtl"] .p12-entry-brand,
[dir="rtl"] .p12-entry-card,
[dir="rtl"] .p12-entry-login-intro,
[dir="rtl"] .p12-entry-form,
[dir="rtl"] .p12-entry-scope {
  text-align: right;
}

[dir="rtl"] .p12-entry-language select {
  padding-right: 10px;
  padding-left: 34px;
}

@media (max-width: 760px) {
  .p12-entry-wrap {
    width: min(100% - 28px, 1120px);
    padding-top: 14px;
  }

  .p12-entry-topbar,
  .p12-entry-login-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .p12-entry-language {
    width: 100%;
    justify-content: space-between;
  }

  .p12-entry-language select {
    flex: 1 1 auto;
    max-width: 210px;
  }

  .p12-entry-grid {
    grid-template-columns: 1fr;
  }

  .p12-entry-card {
    min-height: 220px;
  }

  .p12-entry-footer {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
  }

  .p12-entry-login-shell {
    padding: 14px;
  }

  .p12-entry-login-card {
    padding: 20px;
    border-radius: 14px;
  }
}

@media (max-width: 620px) {
  .p12-entry-action {
    width: 100%;
  }

  .p12-entry-form button {
    width: 100%;
  }
}
