

/* ===== LOGIN ADMIN ===== */
body.admin-login {
    background: linear-gradient(135deg, #1A1A1A 0%, #FF6B35 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo */
body.admin-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.03) 35px,
            rgba(255, 255, 255, 0.03) 70px
        );
    pointer-events: none;
}

/* ===== CONTENEDOR ADMIN ===== */
.admin-login-container {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.6s ease;
    position: relative;
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER ADMIN ===== */
.admin-login-header {
    background: linear-gradient(135deg, #000000, #1A1A1A);
    padding: 3rem 2rem;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.admin-login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.admin-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B35, #FF8C61);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 1;
}

.admin-icon i {
    font-size: 2.5rem;
    color: #FFFFFF;
}

.admin-login-header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.admin-login-header p {
    margin: 0.5rem 0 0 0;
    font-weight: 600;
    opacity: 0.8;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ===== BODY ADMIN ===== */
.admin-login-body {
    padding: 2.5rem;
}

.admin-login-body .form-floating {
    margin-bottom: 1.5rem;
}

.admin-login-body .form-control {
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-login-body .form-control:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.admin-login-body .form-floating label {
    font-weight: 600;
    color: #6C757D;
}

/* ===== BOTÓN LOGIN ADMIN ===== */
.btn-admin-login {
    background: linear-gradient(135deg, #FF6B35, #FF8C61);
    border: none;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
    padding: 1.125rem;
    border-radius: 12px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-admin-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-admin-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-admin-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-admin-login i {
    position: relative;
    z-index: 1;
}

.btn-admin-login span {
    position: relative;
    z-index: 1;
}

/* ===== ALERTAS ADMIN ===== */
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-danger {
    background: linear-gradient(135deg, #FFE6E6, #FFD1D1);
    color: #DC3545;
}

.alert-success {
    background: linear-gradient(135deg, #D4EDDA, #C3E6CB);
    color: #28A745;
}

/* ===== SECURITY BADGE ===== */
.security-badge {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E9ECEF;
}

.security-badge i {
    color: #FF6B35;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.security-badge p {
    color: #6C757D;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

/* ===== BACK HOME ===== */
.back-home {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.back-home a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.back-home a:hover {
    gap: 1rem;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .admin-login-header h1 {
        font-size: 1.4rem;
    }
    
    .admin-login-body {
        padding: 2rem 1.5rem;
    }
    
    .admin-icon {
        width: 70px;
        height: 70px;
    }
    
    .admin-icon i {
        font-size: 2rem;
    }
}

/* ===== ANIMACIÓN DE PULSO PARA EL ICONO ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.admin-icon {
    animation: pulse 3s ease-in-out infinite;
}

/* Fix para que el label no tape el texto */
.form-floating > .form-control {
    height: calc(3.5rem + 2px);      /* Ajusta la altura */
    padding: 1rem 1rem 0.5rem 1rem;  /* Deja espacio para el texto */
}

.form-floating > label {
    padding: 0.5rem 1rem;            /* Baja un poco la etiqueta */
    transform: translateY(0.25rem);  /* Ajuste fino */
    opacity: 0.7;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(.85) translateY(-1.2rem); /* Mejor alineado arriba */
    opacity: 1;
}
