@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0A0A0B;
  color: #E6E6E6;
  font-family: 'Montserrat', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* Loader */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(212, 175, 55, 0.3);
  border-top-color: #D4AF37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Títulos */
.brand-title, .brand-title-small {
  font-family: 'Cinzel', serif;
  color: #E5C158;
  letter-spacing: 1.5px;
  text-align: center;
}
.brand-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.brand-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* Tela Auth */
#auth-screen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.auth-card {
  background: linear-gradient(145deg, #121214, #18181C);
  border: 1px solid #2B2618;
  border-top: 2px solid #D4AF37;
  border-radius: 8px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.input-group {
  margin-bottom: 1.2rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #CCC;
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  padding-right: 2.5rem;
  background-color: #1A1A1A;
  border: 1px solid #333;
  border-radius: 4px;
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
}
.input-group input:focus {
  outline: none;
  border-color: #D4AF37;
}
.btn-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.5);
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.btn-icon:hover {
  color: #FFF;
  background: transparent !important;
}
.input-group input:focus {
  outline: none;
  border-color: #D4AF37;
}

.error-msg {
  color: #ff5252;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Botoes */
button {
  width: 100%;
  padding: 0.8rem;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background-color: #D4AF37;
  color: #0A0A0B;
  margin-bottom: 1rem;
}
.btn-primary:hover {
  background-color: #E5C158;
}
.btn-secondary {
  background: transparent;
  color: #CCC;
  font-size: 0.85rem;
}
.btn-secondary:hover {
  color: #FFF;
}
.btn-google {
  background-color: transparent;
  color: #FFF;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-google:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.btn-google img {
  width: 18px;
}

/* Divisor */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #666;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #333;
}
.divider span {
  padding: 0 10px;
  font-size: 0.8rem;
}

/* Tela Principal */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #121214;
  border-bottom: 1px solid #2B2618;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.user-email {
  color: #CCC;
  font-size: 0.9rem;
}
.btn-logout {
  width: auto;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #D4AF37;
  border: 1px solid #D4AF37;
}
.btn-logout:hover {
  background: rgba(212, 175, 55, 0.1);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}
.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.header-section h3 {
  font-family: 'Montserrat', sans-serif;
  color: #FFF;
}
.header-section .btn-primary {
  width: auto;
  margin-bottom: 0;
  padding: 0.6rem 1.2rem;
}
.empty-state {
  text-align: center;
  color: #666;
  padding: 3rem;
  border: 1px dashed #333;
  border-radius: 8px;
}
