/* Custom styles for Proyecto-TPI */
:root{
  --brand-color: #0d6efd;
  --bg-soft: #f8f9fa;
}

html, body { height: 100%; }
body{
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background-color: var(--bg-soft);
  color: #222;
}

.main-content{ padding: 2.5rem 1rem; min-height: calc(100vh - 220px); }

.site-brand{ color: var(--brand-color); font-weight:700; }

.muted-small{ color: #6c757d; font-size:0.95rem; }

.toast {
    min-width: 320px !important;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.20);
    font-size: 18px;
}

.toast-success {
    background-color: #28a745 !important;
}

.toast-error, .toast-danger {
    background-color: #dc3545 !important;
}

.toast-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.toast-info {
    background-color: #0dcaf0 !important;
}

.toast-body {
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 14px 14px 45px;
    border: 2px solid rgba(0, 0, 0, 0.3); /* Contorno tenue */
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05); /* Fondo claro */
    color: #000; /* Texto negro */
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    
}

.form-group input:focus {
    background-color: rgba(0, 0, 0, 0.1); /* Fondo más oscuro al enfocar */
    border-color: #000; /* Contorno negro al enfocar */
}

.form-group input::placeholder {
    color: #666; /* Placeholder en gris oscuro */
}

.form-group select {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid rgba(0, 0, 0, 0.3); /* Contorno tenue */
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05); /* Fondo claro */
    color: #000; /* Texto negro */
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-group select:focus {
    background-color: rgba(0, 0, 0, 0.1); /* Fondo más oscuro al enfocar */
    border-color: #000; /* Contorno negro al enfocar */
}

.form-group select::placeholder {
    color: #666; /* Placeholder en gris oscuro */
}

/* Links */
.signup-link, .login-link {
    text-align: center;
    margin-top: 25px;
}

.signup-link p, .login-link p {
    font-size: 14px;
    color: #000; /* Texto en negro */
}

.signup-text, .login-text {
    color: #000; /* Links en negro */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.signup-text:hover, .login-text:hover {
    color: #444; /* Texto más oscuro al pasar el cursor */
    transform: scale(1.1);
}

/* Password Toggle Icon */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: transparent;
    border: 2px solid #000; /* Contorno negro */
    border-radius: 50%;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.toggle-password::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #000; /* Icono negro */
    background-color: transparent;
}

.toggle-password::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: #000; /* Líneas en negro */
    opacity: 1;
}

.toggle-password.active::after {
    opacity: 0;
}

/* Estilo del mensaje de error */
.error-message {
    color: #ff4d4d; /* Rojo claro para indicar error */
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 5px;
}


/* Form */
.login-form h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 26px;
    color: #000; /* Título en negro */
}

/* Form Fields */
.form-group {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}
/*ESTILOS QUE BOOTSTRAP NO CUBRE */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.list-group-item-action:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 3px solid var(--bs-primary);
    padding-left: 0.75rem !important;


  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
    flex: 1;
}
