@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/nunito-500.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-600.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-700.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-800.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/nunito-900.ttf") format("truetype");
}

:root {
  --red: #b60416;
  --red-dark: #93000f;
  --ink: #07142b;
  --muted: #8b9cba;
  --surface: #f5f7fb;
  --line: #e4eaf3;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--white);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(182, 4, 22, .055), transparent 28rem),
    var(--white);
  font-family: "Nunito", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 36px 20px;
}

.login-card {
  width: min(100%, 440px);
}

.brand {
  margin-bottom: 34px;
  text-align: center;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 21px;
  place-items: center;
  border: 1px solid #f0e4e6;
  border-radius: 19px;
  background: var(--white);
  box-shadow: 0 9px 18px rgba(34, 24, 39, .14);
  isolation: isolate;
}

.brand__glow {
  position: absolute;
  z-index: -1;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #ffd560;
  box-shadow: 0 0 0 8px #f6a13b, 0 0 0 13px #9e0017;
}

.brand__symbol {
  color: #7f0012;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.6px;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.brand p span {
  padding: 0 3px;
  color: #bac5d8;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 39px;
  padding: 4px;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: #f0f4f8;
}

.role-switch__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  color: #8a9bb8;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  transition: color .2s, background .2s, box-shadow .2s;
}

.role-switch__button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.role-switch__button.is-active {
  color: var(--red);
  background: var(--white);
  box-shadow: 0 2px 7px rgba(23, 41, 72, .15);
}

.field {
  margin-bottom: 31px;
}

.field label {
  display: block;
  margin: 0 0 8px 4px;
  color: #8395b4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .8px;
}

.field__control {
  display: flex;
  min-height: 51px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field__control:focus-within {
  border-color: rgba(182, 4, 22, .4);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(182, 4, 22, .07);
}

.field__control svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #c3cede;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.field__control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #24334d;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.field__control input::placeholder {
  color: #8390a7;
  opacity: 1;
}

.form-error {
  margin: -20px 3px 22px;
  padding: 10px 13px;
  border: 1px solid #f3cdd2;
  border-radius: 10px;
  color: #9f0012;
  background: #fff4f5;
  font-size: 12px;
  font-weight: 700;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: -7px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 13px 25px rgba(182, 4, 22, .2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .55px;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.submit-button:hover {
  background: var(--red-dark);
  box-shadow: 0 16px 30px rgba(182, 4, 22, .27);
  transform: translateY(-1px);
}

.submit-button:focus-visible,
.role-switch__button:focus-visible {
  outline: 3px solid rgba(182, 4, 22, .22);
  outline-offset: 2px;
}

.submit-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.welcome {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(15, 31, 58, .09);
  text-align: center;
}

.welcome__icon {
  font-size: 42px;
}

.welcome__eyebrow {
  margin: 13px 0 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.welcome h2 {
  margin: 0;
  font-size: 22px;
}

.welcome > p:last-of-type {
  margin: 8px 0 28px;
  color: #7788a5;
  font-size: 13px;
}

@media (max-width: 520px) {
  .page-shell {
    align-items: start;
    padding: 25px 18px;
  }

  .brand {
    margin-bottom: 28px;
  }

  .brand__mark {
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
  }

  .role-switch {
    margin-bottom: 32px;
  }
}

