@font-face {
  font-family: "TzamsFA";
  src: url("./assets/fontawesome-solid.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
}

:root {
  --tzams-blue: #0079ff;
  --surface: #ffffff;
  --surface-border: rgba(128, 128, 128, 0.5);
  --text-main: #000000;
  --text-muted: #808080;
  --button-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--tzams-blue);
  color: var(--button-text);
}

.login-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: max(3rem, env(safe-area-inset-top)) 2rem 2rem;
}

.login-panel {
  width: min(100%, 28rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: clamp(2rem, 10vh, 6rem);
}

.login-logo {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
}

.field__icon {
  flex: 0 0 auto;
  font-family: "TzamsFA", sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1;
}

.field__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.25rem;
  color: var(--text-main);
}

.field__input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.login-button {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--button-text);
  border-radius: 0.5rem;
  background: var(--tzams-blue);
  color: var(--button-text);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
}

.login-button:focus-visible,
.field:focus-within {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .login-screen {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .field__input {
    font-size: 1.125rem;
  }

  .login-button {
    font-size: 1.375rem;
  }
}
