@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

:root {
  --brand: #f24105;
  --brand-hover: #d93a04;
  --text: #333333;
  --title: #000000;
  --line: #dcdcdc;
  --white: #ffffff;
  --font: Montserrat, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family:Montserrat, Arial, Helvetica, sans-serif;
  background: var(--white);
  display: grid;
  place-items: center;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)), url("../assets/background.png");
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  pointer-events: none;
}

.login-container {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 20px;
}

.auth-box {
  width: 100%;
  padding: 48px 40px;
  background: var(--white);
  border: 1px solid rgba(242, 65, 5, 0.18);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(16, 33, 61, 0.14);
  text-align: center;
}

.auth-header {
  margin-bottom: 32px;
}

.company-logo {
  width: min(190px, 70%);
  height: auto;
  margin-bottom: 22px;
}

.auth-header h1 {
  color: var(--title);
  font-size: 22px;
  font-weight: 800;
}

.auth-header p {
  margin-top: 8px;
  color: #667085;
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.input-group {
  display: grid;
  gap: 6px;
  text-align: left;
}

.input-group label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.input-group input {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fafafa;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(242, 65, 5, 0.12);
}

.btn {
  width: 100%;
  min-height: 46px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.75;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 8px 22px rgba(242, 65, 5, 0.26);
}

.mensagem-erro {
  padding: 10px 14px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  body {
    align-items: start;
  }

  .login-container {
    min-height: 100dvh;
    display: grid;
    align-items: center;
    padding: 24px 16px;
  }

  .auth-box {
    padding: 30px 20px 32px;
    border-radius: 12px;
  }

  .company-logo {
    width: min(150px, 72%);
    margin-bottom: 18px;
  }

  .auth-header {
    margin-bottom: 24px;
  }

  .auth-header h1 {
    font-size: 18px;
  }

  .input-group input {
    font-size: 16px;
  }
}
