/* Reset e fonte */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Fundo escuro */
body {
  background: #0d0d0d;
  color: #f0f0f0;
  overflow: hidden; /* impede scroll */
}

/* Header no topo (left e right) */
header {
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
  font-size: 0.95rem;
}

.header-left {
  display: flex; 
  align-items: center; 
  gap: 16px;
}

.header-left .logo {
  font-size: 1.1rem;
  font-weight: bold;
}

.header-left .logo img {
  height: 100px;
}

.header-left .ca-field {
  font-weight: normal;
  background-color: rgba(255,255,255,0.1);
  padding: 6px 8px;
  border-radius: 4px;
  margin-left: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button-group {
  display: flex;
  gap: 8px;
}

.social-group {
  display: flex;
  align-items: center;
}

.header-right a {
  text-decoration: none;
  color: #f0f0f0;
  padding: 6px 8px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 4px;
  transition: background-color 0.3s;
}

.header-right a:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Balão inferior direito */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.content {
  position: absolute;
  bottom: 20px;
  right: 20px;
  max-width: 600px;
  font-size: 1rem;
  background-color: rgba(40, 40, 40, 0.7);
  color: #f0f0f0;
  padding: 15px 20px;
  border-radius: 10px;
  z-index: 10;
  animation: slideIn 0.3s ease-out forwards;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.content p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.email-box {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.email-box input {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #1a1a1a;
  color: #f0f0f0;
}

.email-box button {
  padding: 6px 12px;
  background-color: #f0f0f0;
  color: #111;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.email-box button:hover {
  background-color: #ddd;
}

/* Mensagem final dentro do balão, abaixo do input */
.feedback-msg {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #f0f0f0;
  min-height: 1.2em; /* reserva espaço para evitar pulo */
}

/* Signup page specific styles */
.top-logo {
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.form-area {
  width: 100%;
  max-width: 320px;
}

.form-area h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.form-area .subtext {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.form-area .subtext a {
  color: #fff;
  text-decoration: none;
}

.form-area .subtext a:hover {
  text-decoration: underline;
}

.alert {
  display: none;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #f0f0f0;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #2a2a2a;
  background-color: #0d0d0d;
  color: #f0f0f0;
  border-radius: 4px;
  font-size: 0.9rem;
}

input::placeholder {
  color: #666;
}

.btn-signup {
  width: 100%;
  padding: 10px;
  margin: 1rem 0;
  background-color: #fff;
  color: #111;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
}

.btn-signup:hover {
  background-color: #ddd;
}

.divider {
  display: flex;
  align-items: center;
  color: #999;
  font-size: 0.8rem;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #333;
  margin: 0 8px;
}

.social-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 0.5rem;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  justify-content: center;
}

.social-btn:hover {
  background-color: #2a2a2a;
}

.footer-text {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #666;
}

.footer-text a {
  color: #666;
  text-decoration: none;
}

.footer-text a:hover {
  color: #fff;
  text-decoration: underline;
}

.btn-request-again {
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: #aaa;
  border: none;
  border-radius: 4px;
  cursor: not-allowed;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.btn-request-again.enabled {
  background-color: #1a1a1a;
  color: #f0f0f0;
  cursor: pointer;
}

.btn-request-again.enabled:hover {
  background-color: #2a2a2a;
}

/* Login page specific styles */
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label-row a {
  color: #999;
  font-size: 0.8rem;
  text-decoration: none;
}

.form-label-row a:hover {
  color: #fff;
}

.btn-signin {
  width: 100%;
  padding: 10px;
  margin: 1rem 0;
  background-color: #fff;
  color: #111;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
}

.btn-signin:hover {
  background-color: #ddd;
}

.nav-button {
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    height: 36px;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-button.primary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-button.primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-button.icon-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    padding: 0;
    margin: 0 8px;
    height: auto;
}

.nav-button.icon-button:hover {
  transform: scale(1.1);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.close-button {
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-button:hover {
  opacity: 1;
}

.ca-container {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 1.2em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.ca-label {
  padding: 8px 12px;
}

.ca-value {
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.ca-value::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.ca-value:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.ca-value.copied {
  background: rgba(0, 255, 0, 0.2);
}

.ca-field {
  font-size: 0.9em;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  width: fit-content;
}

.ca-field:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.ca-field.copied {
  background: rgba(0, 255, 0, 0.2);
}

.content.closing {
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Chat Interface Styles */
.chat-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 600px;
}

.chat-prompt {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.chat-prompt input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  color: white;
  font-family: 'Inter', sans-serif;
}

.chat-prompt input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.chat-send {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.chat-send:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.chat-send.clicked {
  transform: scale(0.95);
  opacity: 0.8;
  transition: transform 0.2s, opacity 0.2s;
}

.chat-expanded {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.95);
  margin-bottom: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-origin: bottom;
  transition: all 0.3s ease;
}

.chat-expanded.active {
  display: block;
  animation: expandChat 0.3s ease forwards;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.minimize-chat {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  max-width: 80%;
  color: white;
}

.message.user {
  background: rgba(255, 255, 255, 0.1);
  margin-left: auto;
}

.message.assistant {
  background: rgba(255, 255, 255, 0.1);
  margin-right: auto;
}

@keyframes expandChat {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
} 