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

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: #00eaff;
    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: #00d9ff;
    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, #007bff, #00aaff);
    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, #005eff, #009ad1);
}

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

small a {
    color: #00d9ff;
    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;
}
