body {
    background: #f6f8fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.container {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.1);
    width: 370px;
    animation: fadeIn 0.8s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
}
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}
.logo img {
    max-height: 110px;
    max-width: 260px;
    object-fit: contain;
}
.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    margin-top: 1.2rem;
    width: 100%;
}
.logo-row img {
    max-height: 160px;
    max-width: 420px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
}
.toggle-password svg {
    width: 22px;
    height: 22px;
    fill: #888;
    transition: transform 0.2s, fill 0.2s;
}
.toggle-password.active svg {
    transform: scale(1.2) rotate(15deg);
    fill: #1677ff;
}
h1 {
    text-align: center;
    color: #222;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
label {
    font-weight: 500;
    color: #333;
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 0.7rem;
    margin: 0.3rem 0 1rem 0;
    border: 1px solid #b2bec3;
    border-radius: 6px;
    transition: border-color 0.3s;
}
input[type="text"]:focus, input[type="password"]:focus {
    border-color: #2980b9;
    outline: none;
}
input[type="submit"] {
    width: 100%;
    background: #1677ff;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
input[type="submit"]:hover {
    background: #0056b3;
    transform: scale(1.03);
}
.register-link {
    text-align: center;
    margin-top: 1rem;
}
.register-link a {
    color: #1677ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.register-link a:hover {
    color: #0056b3;
}
.error-msg {
    background: #ff7675;
    color: #fff;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    animation: shake 0.3s;
}
@keyframes shake {
    0% { transform: translateX(-5px);}
    25% { transform: translateX(5px);}
    50% { transform: translateX(-5px);}
    75% { transform: translateX(5px);}
    100% { transform: translateX(0);}
}
.card {
    border-radius: 14px;
    box-shadow: 0 6px 32px 0 rgba(31, 38, 135, 0.13);
    padding-bottom: 2rem;
}
.card-custom {
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    background: #fff;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100vw;
}
.form-group {
    margin-bottom: 1.7rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.help-text {
    text-align: center;
    font-size: 0.93rem;
    color: #888;
    margin-top: 0.3rem;
    margin-bottom: 0.7rem;
    width: 100%;
}

/* Ajuste para el grid y los campos */
@media (min-width: 768px) {
    .card {
        max-width: 950px;
        margin: 2rem auto;
    }
    .form-group {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
@media (max-width: 767.98px) {
    .card {
        max-width: 98vw;
        margin: 1rem auto;
    }
}

/* Íconos alineados y campos con padding */
.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #1677ff;
    font-size: 1.35rem;
    z-index: 2;
    pointer-events: none;
    opacity: 0.85;
}
.input-icon input,
.input-icon select {
    padding-left: 2.5rem !important;
}
select, option { text-transform: uppercase; }
/* Puedes poner esto en tu styles.css */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    table-layout: fixed !important;
    width: 100% !important;
}

.table th, .table td {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    vertical-align: top !important;
    padding: 0.7rem 0.5rem !important;
    text-align: left;
}

.table th:first-child,
.table td:first-child {
    max-width: 90px !important;
    min-width: 60px !important;
    width: 8% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.table th:last-child,
.table td:last-child {
    width: 60px;
    min-width: 50px;
    max-width: 80px;
    text-align: center;
}

.table th {
    background: #2d3748;
    color: #fff;
}

@media (max-width: 1200px) {
    .table th, .table td {
        font-size: 0.98rem;
        padding: 0.5rem 0.3rem !important;
    }
}

/* Hace que todas las animaciones de salida sean rápidas */
.animate__fadeOut,
.animate__fadeOutLeft,
.animate__fadeOutRight,
.animate__fadeOutUp,
.animate__fadeOutDown {
    --animate-duration: 0.3s !important;
}
.admin-toggle-animate {
    animation: adminToggleFlash 0.8s;
}
@keyframes adminToggleFlash {
    0%   { background-color: #ffe066; }
    50%  { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

/* Estilos comunes para gestión de usuarios */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.text-success-light {
    color: rgba(28, 200, 138, 0.8) !important;
}

.text-danger-light {
    color: rgba(231, 74, 59, 0.8) !important;
}

.text-info-light {
    color: rgba(54, 185, 204, 0.8) !important;
}

.text-warning-light {
    color: rgba(246, 194, 62, 0.8) !important;
}