* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --bg: #141418;
  --panel: #1e1e24;
  --purple: #7c5cff;
  --purple-dark: #5d3df0;
  --text: #f3f3f6;
  --border: rgba(255, 255, 255, 0.08);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1b1b24 0%, #111116 60%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Camada visual do fundo */
.background-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0, transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.04) 0, transparent 18%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.03) 0, transparent 25%);
  z-index: 0;
}

/* Barra superior */
.topbar {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c5cff, #4e2edf);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -1px;
  box-shadow: 0 0 0 1.5px rgba(124, 92, 255, 0.4), 0 4px 14px rgba(124, 92, 255, 0.35);
}

.logo-area h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.top-nav {
  display: flex;
  gap: 24px;
}

.top-nav a {
  color: #d0d0d0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.top-nav a:hover {
  color: #ffffff;
}

/* Área principal */
.login-page {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 90px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

/* Card do login */
.login-card {
  width: 100%;
  max-width: 430px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.login-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin: 0 auto 18px;
  background: var(--purple) !important;
  color: #111;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtitle {
  color: #b9b9b9;
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Formulário */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group input:focus, 
.input-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2);
  outline: none;
}

.input-group {
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: #d7d7d7;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #2e2e34;
  border-radius: 14px;
  background: #161618;
  color: #f5f5f5;
  outline: none;
  transition: 0.2s ease;
}

.input-group input::placeholder {
  color: #888;
}

.input-group input:focus {
  border-color: #707070;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

/* Opções do form */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  margin-top: -2px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdbdbd;
}

.forgot-password {
  color: #d9d9d9;
  text-decoration: none;
  transition: 0.2s ease;
}

.forgot-password:hover {
  color: #ffffff;
}

/* Botão */
.login-button {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--purple);
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.login-button:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 92, 255, 0.3);
}

.register-text {
  margin-top: 22px;
  font-size: 0.92rem;
  color: #b9b9b9;
}

.register-text a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
  .topbar {
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .top-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .login-card {
    padding: 30px 22px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-page {
  min-height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.welcome-card {
  width: 100%;
  max-width: 700px;
  background: rgba(30, 30, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.welcome-card h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.welcome-card p {
  color: #b9b9b9;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
}

/* Container das notificações */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Estilo de cada aviso */
.toast {
    background: rgba(30, 30, 33, 0.95);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    border-left: 4px solid gray;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 3.5s forwards;
    min-width: 250px;
    font-size: 0.9rem;
}

.toast.error {border-left-color: #ff4b4b;}
.toast.success {border-left-color: #20d3ae;}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}


/*animacao de tela*/

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/*aplica animaçao no card principal*/

.login-card {
  animation: fadeIn 0.6s ease-in-out;
}

/* Efeito de brilho extra no botão ao passar o mouse */
.login-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.login-button:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  filter: brightness(1.1);
  transform: scale(1.02);
  
}

/* style para os links de troca de tela (Cadastro/Login) */
.register-text a {
  position: relative;
  transition: 0.3s;
}

.register-text a:hover {
  text-shadow: 0 0 8px #ffffff;
}




