@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
:root {

  --color-primary: #C4373B;            /* rojo logo */
  --color-text: #111111;               /* negro logo */
  --color-danger: #C4373B;             /* rojo corporativo */
  --color-success: #1E8E5A;            /* verde financiero sobrio */
  --color-warning: #E6A700;            /* amarillo profesional */
  --color-white: #ffffff;

  --color-info-dark: #5C5C5C;
  --color-info-light: #EAEAEA;

  --color-dark: #111111;
  --color-light: rgba(196, 55, 59, 0.12);  /* rojo muy suave */

  --color-primary-variant: #8E1F24;    /* rojo oscuro gradiente */
  --color-dark-variant: #444444;

  --color-background: #F4F4F4;
  --color-alpha: #F1F1F1;
  --color-mt5: #ffffff;

  --card-border-radius: 2rem;
  --border-radius-1: 0.4rem;
  --border-radius-2: 0.8rem;
  --border-radius-3: 1.2rem;

  --card-padding: 1.8rem;
  --padding-1: 1.2rem;

  --box-shadow: 0 2rem 3rem var(--color-light);
  --box-shadow2: 0 2rem 3rem rgba(0,0,0,0.3);

  --color-sidebar-bg: #ffffff;
  --color-scrollbar-sidebar: #E0E0E0;
  --color-hover-sidebar: #C4373B20;

  --fuente-principal: Roboto, sans-serif;
  --fuente-secundaria: Roboto, sans-serif;

  --color-th: #F7F7F7;
  --color-hover: #EFEFEF;
  --color-total-clients: #ffffff;
  --color-card-special: #ffffff;
  --color-confirmation: #F8F8F8;

  --gradient-filter-up: #8E1F24;
  --gradient-filter-down: #C4373B;

  --pagination-color: #EFEFEF;
  --color-scrollbar-table: #C4373B;

  --yellow: 45 95% 50%;
  --primary: 0 58% 50%;         /* rojo en HSL */
  --success: 142 60% 35%;
  --destructive: 0 65% 45%;
  
  --muted: 0 0% 96%;
}

/*modo oscuro*/

body.dark-mode {

  --color-background: #111111;
  --color-white: #1C1C1C;

  --color-dark: #ffffff;
  --color-dark-variant: #BBBBBB;

  --color-light: rgba(196, 55, 59, 0.15);

  --box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.6);

  --color-sidebar-bg: #000000;
  --color-scrollbar-sidebar: #292828;

  --color-primary: #C4373B;
  --color-hover-sidebar: #C4373B33;

  --color-th: #1F1F1F;
  --color-hover: #2A2A2A;

  --color-total-clients: #1C1C1C;
  --color-card-special: #1C1C1C;
  --color-confirmation: #181818;

  --gradient-filter-up: #8E1F24;
  --gradient-filter-down: #C4373B;

  --pagination-color: #2B2B2B;
  --color-scrollbar-table: #C4373B;

  --table-header: 0 0% 20%;
  --muted-foreground: 0 0% 65%;
  --muted: 0 0% 15%;

  --gradient-card-up: #C4373B;
  --gradient-card-down: #8E1F24;
}
body {
    font-family: 'Poppins', sans-serif;
    background: #2e26262e;
    background-image: url('fondito.png'); /* o elimina esto si no quieres imagen de fondo */
    background-size: cover;
    background-position: center;
    height: 100vh;
    margin: 0;
}

/* Login container */
.box-area {
    width: 950px;
    border-radius: 24px;
    background: rgb(99 97 97 / 7%);
    box-shadow: 0 0 40px rgb(0 0 0 / 13%);
}




/* Left logo area */
.left-box img {
    width: 220px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* Right box styles */
.right-box {
    padding: 40px 30px 40px 40px;
}

/* Header text */
.header-text h2 {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-text p {
    color: #b0c7d1;
    font-size: 14px;
}

/* Inputs */
.input-group input {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 14px;
    border-color: #a0c0df
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #00eaff55;
}

/* Placeholder */
::placeholder {
    color: #888;
    font-size: 14px;
}

/* Forgot password link */
.forgot a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 13px;
}

.forgot a:hover {
    text-decoration: underline;
}

/* Error message */
.error {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 5px;
}

/* Login button */
.btn-primary {
    background: linear-gradient(90deg, #8e1f24, #ff6a6e);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #47070a, #ff6a6e);
}

small {
    color: #999;
    font-size: 14px;
}

small a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

small a:hover {
    text-decoration: underline;
}


/* Responsive */
@media only screen and (max-width: 768px) {
    .box-area {
        margin: 0 10px;
    }
    .left-box {
        display: none;
    }
    .right-box {
        padding: 30px 20px;
    }
}

#toast-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
}

.toast {
  display: flex !important;
  align-items: center;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 20px;
  margin-bottom: 12px;
  border-radius: 10px;
  background-color: #f44336;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  animation: slideIn 0.4s ease, fadeOut 0.5s ease 4.5s forwards;
  position: relative;
  overflow: hidden;
}

.toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.7);
  animation: progressBar 5s linear forwards;
  width: 100%;
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
    height: 0;
    padding: 0;
    margin: 0;
  }
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* spinner pequeño */
.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* convierte cualquier SVG en blanco */
  margin-right: 12px;
}
