:root {
  --color-yellow: #c79050;
  --color-darkblue: #1d2437;
  --color-white: #ffffff;
  --color-grey: #aaaaaa;

  --transition: all 300ms ease;
}

html {
  scrollbar-color: var(--color-yellow) var(--color-white);
  height: 100dvh;
}

* {
  margin: 0;
  border: 0;
  padding: 0;
  outline: 0;
  appearance: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Poppins";
  color: var(--color-darkblue);
}

p {
  font-size: 1rem;
  font-weight: 600; /* REGULAR */
}

a {
  color: var(--color-darkblue);
}

body {
  height: 100dvh;
  background-color: var(--color-darkblue);
}

section.login-page {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100vh;

  background-color: var(--color-darkblue);
}

form {
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  width: 400px;
  min-width: 300px;
}

input {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: solid 2px var(--color-darkblue);
}

button {
  padding: 0.5rem;
  border-radius: 0.5rem;

  background-color: var(--color-yellow);
  color: var(--color-white);

  cursor: pointer;

  transition: var(--transition);
}

button:hover {
  background-color: var(--color-darkblue);
}

button:hover p {
  color: var(--color-white);
}

.input_box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 100%;
}

/* FLASH MESSAGE */

.flash-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash-message {
  min-width: 300px;
  max-width: 400px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Sucesso */

.flash-message.success {
  border-left: 5px solid #10b981;
}

.flash-message.success .flash-icon {
  color: #10b981;
}

.flash-content strong {
  display: block;
  color: #1f2937;
  font-size: 0.95rem;
}

.flash-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.flash-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 20px;
  margin-left: auto;
  transition: color 0.2s;
}

.flash-close:hover {
  color: #374151;
}

.flash-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #e5e7eb;
}

.flash-progress::after {
  content: "";
  position: absolute;
  left: 0;
  height: 100%;
  width: 100%;
  background: #10b981;
  animation: progress 5s linear forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Erro */

.flash-message.error {
  border-left: 5px solid #ef4444;
}
.flash-message.error .flash-icon {
  color: #ef4444;
}
.flash-message.error .flash-progress::after {
  background: #ef4444;
}

.flash-message.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media screen and (max-width: 500px) {
  form {
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 1.5rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    width: auto;
    min-width: 300px;
  }
}
