@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: local("Roboto"), local("Roboto-Regular"),
    url(fonts/roboto-v18-latin-regular.woff2) format("woff2"),
    url(fonts/roboto-v18-latin-regular.woff) format("woff");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  src: local("Roboto Medium"), local("Roboto-Medium"),
    url(fonts/roboto-v18-latin-500.woff2) format("woff2"),
    url(fonts/roboto-v18-latin-500.woff) format("woff");
}

:root {
  color-scheme: light;
  --brand: #d64759;
  --brand-light: #da7352;
  --primary: #2196f3;
  --warn: #e64a19;
  --card-background: #fff;
  --field-background: #fff;
  --field-border: rgba(0, 0, 0, 0.12);
  --field-border-hover: rgba(0, 0, 0, 0.87);
  --text: rgba(0, 0, 0, 0.87);
  --muted: rgba(0, 0, 0, 0.6);
  --logo-text: #56504a;
  --radius: 4px;
  --field-radius: 5px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  background: var(--brand);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Roboto, "Helvetica Neue", sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
}

strong {
  font-weight: 500;
}

.access-wrapper {
  display: grid;
  grid-template-areas: "content";
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 0.5rem;
  align-items: center;
  justify-items: center;
  min-height: 100vh;
  background: var(--brand);
  background-image: linear-gradient(360deg, var(--brand) 10%, var(--brand-light) 360%);
}

.publicity {
  display: none;
  opacity: 0.5;
}

.publicity video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
}

.access-card {
  width: 95%;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card-background);
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  animation: fade-in-down 0.5s both;
}

.access-card__company-logo {
  margin: 2rem auto;
  text-align: center;
}

.access-card__company-logo svg {
  max-width: 100%;
  height: auto;
}

.logo-text {
  fill: var(--logo-text);
}

.access-content {
  display: grid;
  width: 100%;
}

.access-content h2 {
  justify-self: center;
  margin: 0 0 2.4rem;
  font-size: 2rem;
  font-weight: 500;
}

.hint {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.alert {
  margin: 0 0 1.6rem;
  color: var(--warn);
  font-weight: 500;
}

form {
  display: grid;
}

.field {
  position: relative;
  margin-bottom: 2rem;
}

.field input {
  width: 100%;
  height: 5rem;
  padding: 0 4.4rem 0 1.2rem;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  background: var(--field-background);
  color: var(--text);
  font: inherit;
  font-size: 1.4rem;
  outline: none;
}

.field input[type="email"] {
  text-transform: lowercase;
}

.field input:hover {
  border-color: var(--field-border-hover);
}

.field input:focus {
  border: 2px solid var(--primary);
  padding-left: 1.1rem;
}

.field label {
  position: absolute;
  top: 1.5rem;
  left: 0.8rem;
  padding: 0 0.4rem;
  background: linear-gradient(var(--card-background) 50%, var(--field-background) 50%);
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.2s, color 0.2s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-2.3rem) scale(0.75);
}

.field input:focus + label {
  color: var(--primary);
}

.field__suffix {
  position: absolute;
  top: 1.1rem;
  right: 0.8rem;
  padding: 0.2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.field__suffix .material-icons {
  font-size: 2.2rem;
}

.field__error {
  display: none;
  padding: 0.4rem 1.2rem 0;
  color: var(--warn);
  font-size: 1.1rem;
}

.field input:user-invalid {
  border: 2px solid var(--warn);
  padding-left: 1.1rem;
}

.field input:user-invalid + label {
  color: var(--warn);
}

.field input:user-invalid ~ .field__error {
  display: block;
}

.button {
  width: 100%;
  margin: 0.8rem 0;
  padding: 0 1.6rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  line-height: 3.6rem;
  text-transform: uppercase;
  cursor: pointer;
}

.button--primary {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.button--secondary {
  border: 1px solid var(--field-border);
  background: transparent;
  color: var(--primary);
}

.button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.intro {
  margin: 0 0 1.6rem;
}

.permissions {
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
}

.permission {
  position: relative;
  margin: 0 0 1.2rem;
  padding-left: 1.6rem;
}

.permission:last-child {
  margin-bottom: 0;
}

.permission::before {
  position: absolute;
  top: 0.75rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.permission strong,
.permission span {
  display: block;
}

.permission span {
  color: var(--muted);
  font-size: 1.3rem;
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .access-wrapper {
    grid-template-columns: 5fr 1fr;
  }

  .publicity {
    display: block;
  }

  .access-card {
    z-index: 100;
    align-self: stretch;
    width: 100%;
    min-width: 45rem;
    border-radius: 0;
    opacity: 0.95;
  }
}
