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

:root {
  /* LinkNet Visual Identity */
  --primary-color: #0D1B40;
  /* Azul Escuro */
  --secondary-color: #1E3A6E;
  /* Azul Royal */
  --cta-color: #2198FF;
  /* Azul CTA */
  --cta-hover: #1a7fd9;
  /* CTA Hover */
  --accent-color: #FF6F00;
  /* Laranja Accent */
  --bg-color: #F5F5F5;
  /* Cinza Claro */
  --text-primary: #212529;
  /* Preto Texto */
  --text-secondary: #666666;
  /* Cinza Texto */
  --text-white: #FFFFFF;
  /* Branco */
  --success-color: #28A745;
  /* Verde Sucesso */
  --error-color: #DC3545;
  /* Vermelho Erro */
  --card-shadow: 0 8px 32px rgba(13, 27, 64, 0.1);
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.auth-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo span {
  color: var(--cta-color);
}

.auth-container h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-container>p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-group input,
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
  transition: all var(--transition-speed) ease;
  background: #fff;
}

.form-group input:focus,
.form-control:focus {
  outline: none;
  border-color: var(--cta-color);
  box-shadow: 0 0 0 4px rgba(33, 152, 255, 0.15);
}

.form-group input::placeholder,
.form-control::placeholder {
  color: #adb5bd;
}

/* Input wrapper for password toggle */
.input-wrapper {
  position: relative;
}

.btn-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 5px;
  transition: color var(--transition-speed);
}

.btn-toggle:hover {
  color: var(--cta-color);
}

/* Primary Button (CTA) */
.btn-primary {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--cta-color) 0%, #1a7fd9 100%);
  color: var(--text-white);
  border: none;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(33, 152, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 152, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Auth Footer */
.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--cta-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-speed);
}

.auth-footer a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Message styles */
#message {
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: 10px;
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
}

#message.error {
  background-color: #fef0f0;
  color: var(--error-color);
  border: 1px solid #fdd;
  display: block;
}

#message.success {
  background-color: #f0fdf4;
  color: var(--success-color);
  border: 1px solid #bbf7d0;
  display: block;
}

/* Loading Spinner */
.loader {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 0.8s linear infinite;
  margin-right: 10px;
  display: none;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsividade */
@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .auth-container {
    padding: 1.75rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .auth-container h2 {
    font-size: 1.25rem;
  }
}