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

:root {
  /* Cores da Identidade Visual */
  --primary: #2E9E5B;
  --primary-dark: #176B3A;
  --bg-dark: #0E1A22;
  --text-main: #1F2933;
  --bg-light: #F7FAF8;
  --card-surface: #E8F5ED;
  --accent-positive: #8FD694;
  --accent-financial: #F2C94C;

  /* Cores auxiliares de feedback */
  --text-muted: #627D98;
  --white: #FFFFFF;
  --border-light: rgba(46, 158, 91, 0.15);
  --shadow-sm: 0 2px 8px rgba(14, 26, 34, 0.04);
  --shadow-md: 0 10px 25px rgba(14, 26, 34, 0.08);
  --shadow-lg: 0 20px 40px rgba(14, 26, 34, 0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

/* Reset Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Componentes de Layout */
.app-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

/* Header Premium */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 2rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(46, 158, 91, 0.2));
  transition: var(--transition-smooth);
}

.brand:hover .brand-logo {
  transform: rotate(-10deg) scale(1.05);
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-dark);
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(46, 158, 91, 0.3);
  border: 2px solid var(--white);
}

.welcome-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.welcome-text .greeting {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.welcome-text .username {
  font-weight: 700;
  color: var(--bg-dark);
}

/* Cartão Destaque - Balanço Geral */
.dashboard-hero {
  background: linear-gradient(135deg, var(--bg-dark), #172a3a);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 158, 91, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.month-selector {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.month-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  opacity: 0.7;
  padding: 0.25rem;
  border-radius: 4px;
}

.month-btn:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.month-btn:active {
  transform: scale(0.95);
}

.current-month-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  min-width: 110px;
  text-align: center;
  text-transform: capitalize;
  user-select: none;
}

.hero-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-positive);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-total-spent {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.hero-total-spent span.currency {
  font-size: 1.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.hero-message {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 240px;
  position: relative;
  z-index: 2;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(46, 158, 91, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(23, 107, 58, 0.45);
}

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

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

/* Ajuste do botão secundário para fundos claros (dentro de modais) */
.modal-content .btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.modal-content .btn-secondary:hover {
  background-color: var(--card-surface);
  color: var(--primary-dark);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.modal-content .btn-secondary:active {
  transform: translateY(-1px);
}

/* Seção de Categorias */
.section-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
  margin-top: 4px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Grid de Categorias */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Card de Categoria */
.category-card {
  background-color: var(--cat-bg);
  border: 1px solid var(--cat-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04), 0 8px 20px var(--cat-bg);
  border-color: var(--cat-color);
  background-color: var(--white);
}

.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-color);
  background-color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.category-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.category-card:hover .category-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.category-info {
  flex-grow: 1;
}

.category-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 0.15rem;
}

.category-transaction-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-value-wrapper {
  text-align: right;
}

.category-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.category-percentage {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Barra de Progresso do Card */
.category-progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: rgba(46, 158, 91, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--cat-color);
  border-radius: 4px;
  width: 0;
  /* Atualizado via JS */
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal de Novo Gasto */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(14, 26, 34, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 1.25rem;
  /* Garante margem de 20px em telas menores */
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(40px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background-color: var(--card-surface);
  color: var(--bg-dark);
}

/* Formulário do Modal */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  background-color: var(--bg-light);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.1);
}

.form-control.has-prefix {
  padding-left: 2.5rem;
}

.form-control-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23627D98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.form-actions .btn {
  flex: 1;
}

/* Utilitários SPA */
.hidden {
  display: none !important;
}

/* Header Histórico */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  color: var(--primary-dark);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-back:hover {
  background-color: var(--card-surface);
  border-color: var(--primary);
  transform: translateX(-3px);
}

.history-summary-card {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  width: 100%;
}

.history-summary-card .summary-label {
  font-size: 0.75rem;
  color: var(--accent-positive);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.history-summary-card .summary-value {
  font-size: 1.5rem;
  font-weight: 800;
}

/* Barra de Filtros */
.filters-bar {
  display: flex;
  gap: 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-filter {
  flex-grow: 2;
}

.category-filter {
  flex-grow: 1;
  min-width: 220px;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  background-color: var(--bg-light);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-smooth);
}

.filter-control:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.08);
}

.search-input-wrapper .filter-control {
  padding-left: 2.75rem;
}

.filter-control-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23627D98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Lista de Gastos */
.history-list-container {
  min-height: 200px;
  position: relative;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  gap: 1.5rem;
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--cat-color);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.history-item-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cat-bg);
  color: var(--cat-color);
  flex-shrink: 0;
}

.history-item-icon-wrapper svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.history-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.history-item-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1.3;
}

.history-item-category-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cat-color);
  background-color: var(--cat-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.history-item-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.history-item-date-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.history-item-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.history-item-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.btn-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-delete:hover {
  background-color: rgba(235, 87, 87, 0.1);
  color: #EB5757;
  transform: scale(1.1);
}

/* Estado Vazio */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--white);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(46, 158, 91, 0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.empty-state-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
}

/* Modal de Confirmação */
.modal-content-confirm {
  max-width: 400px;
  text-align: center;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.confirm-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: rgba(235, 87, 87, 0.1);
  color: #EB5757;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.confirm-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke: #EB5757;
  fill: none;
}

.confirm-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.confirm-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.btn-danger {
  background-color: #EB5757;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(235, 87, 87, 0.3);
}

.btn-danger:hover {
  background-color: #C53030;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 48, 48, 0.4);
}

.btn-danger:active {
  transform: translateY(-1px);
}

/* Rodapé */
.app-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* Responsividade */
@media (max-width: 768px) {
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
  }

  .hero-actions {
    width: 100%;
    min-width: unset;
  }

  .hero-total-spent {
    font-size: 2.75rem;
  }

  .app-header {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .user-profile {
    width: 100%;
    justify-content: space-between;
  }

  .welcome-text {
    text-align: left;
  }

  .history-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .history-summary-card {
    align-items: flex-start;
  }

  .filters-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .category-filter {
    min-width: unset;
  }

  .history-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
  }

  .history-item-right {
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
    gap: 1rem;
  }

  .history-item-date-value {
    align-items: flex-start;
  }
}

/* ==========================================================================
   TELA DE LOGIN (ESTILO PREMIUM E GLASSMORPHISM)
   ========================================================================== */

.login-wrapper {
  background: radial-gradient(circle at 10% 20%, rgba(23, 107, 58, 0.25) 0%, rgba(14, 26, 34, 1) 90%);
  background-color: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

/* Efeitos de Fundo (Orbes de Luz Neon) */
.login-wrapper::before,
.login-wrapper::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

.login-wrapper::before {
  top: -10%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.login-wrapper::after {
  bottom: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.login-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-logo {
  height: 72px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px rgba(46, 158, 91, 0.6));
  animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.login-app-name {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.login-app-name span {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(46, 158, 91, 0.4);
}

.login-slogan {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  line-height: 1.4;
}

/* Card Glassmorphic */
.login-card {
  background: rgba(20, 32, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(46, 158, 91, 0.1) inset;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-card-title {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.login-card-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: -1.25rem;
  line-height: 1.3;
}

/* Inputs da tela de Login */
.login-card .form-group {
  margin-bottom: 1.25rem;
}

.login-card .form-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.8px;
}

.login-card .input-wrapper {
  position: relative;
}

.login-card .input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.login-card .form-control {
  background-color: rgba(14, 26, 34, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 1.1rem 1.2rem 1.1rem 2.8rem;
  font-weight: 400;
}

.login-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-card .form-control:focus {
  border-color: var(--primary);
  background-color: rgba(14, 26, 34, 0.8);
  box-shadow: 0 0 15px rgba(46, 158, 91, 0.25);
}

/* Muda a cor do ícone no foco do input correspondente */
.login-card .input-wrapper:focus-within .input-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 4px rgba(46, 158, 91, 0.5));
}

/* Botão de Login */
.btn-login {
  margin-top: 0.5rem;
  padding: 1.1rem;
  background-color: var(--primary);
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(46, 158, 91, 0.4);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-login:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(23, 107, 58, 0.55);
}

.btn-login:disabled {
  background-color: var(--primary-dark);
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* Dica de Credenciais */
.login-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(46, 158, 91, 0.08);
  border: 1px solid rgba(46, 158, 91, 0.2);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.login-hint svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.login-hint strong {
  color: var(--accent-positive);
  font-weight: 600;
}

/* Botão de Logout no Workspace */
.btn-logout {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-logout:hover {
  background-color: rgba(235, 87, 87, 0.1);
  color: #EB5757;
  border-color: rgba(235, 87, 87, 0.2);
  transform: scale(1.05);
}

.btn-logout:active {
  transform: scale(0.95);
}

.login-error-message {
  background-color: rgba(235, 87, 87, 0.08);
  border: 1px solid rgba(235, 87, 87, 0.2);
  color: #EB5757;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: shake 0.4s ease-in-out;
}

.login-error-message svg {
  flex-shrink: 0;
  color: #EB5757;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}