/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

:root {
  --primary-color: #ff8c00; /* Tom de laranja principal */
  --dark-background: #1b191f;
  --dark-sidebar: #201d25;
  --dark-widget: #201d25;
  --text-color: #ffffff;
  --accent-color: #ffa533; /* Tom de laranja mais claro */
  --highlight-bg: rgba(255, 165, 51, 0.1);
}

body {
  background-color: var(--dark-background);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Container principal */
.container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animação de introdução */
.intro {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-background);
  z-index: 100;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.intro.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.intro-logo {
  max-width: 200px;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.tagline {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  background: linear-gradient(90deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  opacity: 0;
  animation: fadeIn 1s 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.progress-bar {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 30px;
  overflow: hidden;
  position: relative;
}

.progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  animation: loading 3s forwards;
}

@keyframes loading {
  to {
    width: 100%;
  }
}

/* Formulário de login */
.login-container {
  background-color: var(--dark-widget);
  border-radius: 12px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 2;
}

.login-logo {
  height: 80px;
  margin-bottom: 30px;
}

.welcome-text {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--highlight-bg);
}

.forgot-password {
  display: block;
  text-align: right;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--accent-color);
  text-decoration: none;
}

.login-button {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.signup-link {
  margin-top: 25px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.signup-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

/* Partículas de fundo */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

/* Responsividade */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  .login-logo {
    height: 60px;
  }

  .welcome-text {
    font-size: 20px;
  }
}
